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

Artem Bityutskiy dedekind1 at gmail.com
Tue Feb 7 03:02:37 EST 2012


On Tue, 2012-02-07 at 09:47 +0200, Shmulik Ladkani wrote:
> 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?

Not, oversight, fixed in the repo.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120207/1a5edab9/attachment.sig>


More information about the linux-mtd mailing list