From: Xi Wang Date: Mon, 9 Jan 2012 21:58:25 +0000 (-0500) Subject: mtd: pmc551: fix signedness bug in init_pmc551() X-Git-Tag: v3.4-rc1~16^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ff5e1532dd37e1bd8ac72da3f7f0e2b310102fb;p=pandora-kernel.git mtd: pmc551: fix signedness bug in init_pmc551() 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. Signed-off-by: Xi Wang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed