diff options
author | Xi Wang <xi.wang@gmail.com> | 2012-01-10 01:58:25 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-27 03:11:07 +0400 |
commit | 2ff5e1532dd37e1bd8ac72da3f7f0e2b310102fb (patch) | |
tree | aace7e962810765fb37de2dc29c8b0cf77f3fbce /drivers/mtd/mtdblock.c | |
parent | 30ec5a2cb17d78482de0cf9e38721410d48c086d (diff) | |
download | linux-2ff5e1532dd37e1bd8ac72da3f7f0e2b310102fb.tar.xz |
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 <xi.wang@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdblock.c')
0 files changed, 0 insertions, 0 deletions