[PATCH] pmc551: fix signedness bug in init_pmc551()

Artem Bityutskiy dedekind1 at gmail.com
Sat Jan 14 09:29:01 EST 2012


On Mon, 2012-01-09 at 16:58 -0500, Xi Wang wrote:
> Since "length" is a u32, the error handling below didn't work when
> fixup_pmc551() returns -ENODEV.
> 
> 	if ((length = fixup_pmc551(PCI_Device)) <= 0)
> 
> This patch changes both the type of "length" and the return type of
> fixup_pmc551() to int.

Pushed to l2-mtd.git, thanks!

-- 
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/20120114/f23c0119/attachment.sig>


More information about the linux-mtd mailing list