[PATCH 1/3] mtd: remove retlen zeroing duplication

Shmulik Ladkani shmulik.ladkani at gmail.com
Tue Feb 7 02:47:15 EST 2012


On Mon,  6 Feb 2012 14:03:07 +0200 Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> From: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
> 
> The MTD API function now zero the 'retlen' parameter before calling
> the driver's method - do not do this again in dirvers. This removes
> duplicated '*retlen = 0' assignent from the following methods:
> 
>     'mtd_point()'
>     'mtd_read()'
>     'mtd_write()'
>     'mtd_writev()'
>     'mtd_panic_write()'
> 

Seems that '*retlen = 0' is missing from mtd_read() in l2-mtd.
Deliberately? or am I looking at the wrong repo?

Regards
Shmulik



More information about the linux-mtd mailing list