Skip to content
Snippets Groups Projects
Commit d961c188 authored by Anton Staaf's avatar Anton Staaf Committed by Wolfgang Denk
Browse files

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.

Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@freescale.com>
Acked-by: default avatarDetlev Zundel <dzu@denx.de>
parent 9bac35f5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment