diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-10 21:03:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:21 -0400 |
commit | b425d5c82d9b1fcf788688e556e4dfeca76604da (patch) | |
tree | abec89a7486ca331b2bad256a95b4674379f3aed /drivers/edac | |
parent | 44aa80f005be88fef940fccdd345b313964768f3 (diff) |
edac: i5400: improve handling of pci_enable_device() return value
-EIO is not the only error code that pci_enable_device() may return, also
the set of errors can be enhanced in future. We should compare return
code with zero, not with concrete error value.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Jeff Roberson <jroberson@jroberson.net>
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/i5400_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c index 010c1d6526f5..38a9be9e1c7c 100644 --- a/drivers/edac/i5400_edac.c +++ b/drivers/edac/i5400_edac.c | |||
@@ -1348,7 +1348,7 @@ static int __devinit i5400_init_one(struct pci_dev *pdev, | |||
1348 | 1348 | ||
1349 | /* wake up device */ | 1349 | /* wake up device */ |
1350 | rc = pci_enable_device(pdev); | 1350 | rc = pci_enable_device(pdev); |
1351 | if (rc == -EIO) | 1351 | if (rc) |
1352 | return rc; | 1352 | return rc; |
1353 | 1353 | ||
1354 | /* now probe and enable the device */ | 1354 | /* now probe and enable the device */ |