]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
fs/fs.c: correctly interpret the '(max)len' parameter to fs_read()
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 Jun 2016 09:06:58 +0000 (11:06 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 29 Jun 2016 09:12:37 +0000 (11:12 +0200)
The 'len' parameter passed to fs_read() actually denotes the maximum
number of bytes that fit into the callers buffer, not an expected
amount of data to be read.
Rename the parameter accordingly and honor the maxlen requested by the
caller appropriately.
Also remove the bogus warning message printed when the number of bytes
read is smaller than maxlen.


No differences found