diff options
author | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-10-14 14:57:35 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-10-14 14:57:35 -0400 |
commit | 5460a9d0ffc860a370631e096a8a6f3682f3fc94 (patch) | |
tree | a8ba8154832dba93d5394074c9cf8d48f4fc3f3e /drivers/hwmon/sis5595.c | |
parent | d58df9cd788e6fb4962e1c8d5ba7b8b95d639a44 (diff) |
hwmon: (sis5595) fix sparse warning
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/sis5595.c')
-rw-r--r-- | drivers/hwmon/sis5595.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 79a5376a8d81..860b71ccbb86 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -739,11 +739,10 @@ static int __devinit sis5595_pci_probe(struct pci_dev *dev, | |||
739 | int *i; | 739 | int *i; |
740 | 740 | ||
741 | for (i = blacklist; *i != 0; i++) { | 741 | for (i = blacklist; *i != 0; i++) { |
742 | struct pci_dev *dev; | 742 | struct pci_dev *d; |
743 | dev = pci_get_device(PCI_VENDOR_ID_SI, *i, NULL); | 743 | if ((d = pci_get_device(PCI_VENDOR_ID_SI, *i, NULL))) { |
744 | if (dev) { | 744 | dev_err(&d->dev, "Looked for SIS5595 but found unsupported device %.4x\n", *i); |
745 | dev_err(&dev->dev, "Looked for SIS5595 but found unsupported device %.4x\n", *i); | 745 | pci_dev_put(d); |
746 | pci_dev_put(dev); | ||
747 | return -ENODEV; | 746 | return -ENODEV; |
748 | } | 747 | } |
749 | } | 748 | } |