summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2011-06-08 15:15:00 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:19 -0700
commitf97bdd6f0eba1ec18fa70cd059f9b8d504f9c8c2 (patch)
tree2aa027a0e1b6001c41c90ef14dbe4f9f72d63153 /tools/imximage.h
parentb28c3c2179de844442fc1c8fcc090a3582f471d0 (diff)
ext2: Simplify partial sector access logic
Previously reading or writing zero full sectors (reading the end of one sector and the beginning of the next for example) was special cased and involved stack allocating a second sector buffer. This change uses the same code path for this case as well as when there are a non-zero number of full sectors to access. The result is easier to read and reduces the maximum stack used. BUG=None TEST=run "ext2ls mmc 0:3" on Seaboard Change-Id: Iac92172bf40724302292a2a9695cb61029b02ae7 Reviewed-on: http://gerrit.chromium.org/gerrit/2327 Reviewed-by: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'tools/imximage.h')
0 files changed, 0 insertions, 0 deletions