Commit 5460a9d0 authored by Mark M. Hoffman's avatar Mark M. Hoffman

hwmon: (sis5595) fix sparse warning

Signed-off-by: default avatarMark M. Hoffman <mhoffman@lightlink.com>
parent d58df9cd
...@@ -739,11 +739,10 @@ static int __devinit sis5595_pci_probe(struct pci_dev *dev, ...@@ -739,11 +739,10 @@ static int __devinit sis5595_pci_probe(struct pci_dev *dev,
int *i; int *i;
for (i = blacklist; *i != 0; i++) { for (i = blacklist; *i != 0; i++) {
struct pci_dev *dev; struct pci_dev *d;
dev = pci_get_device(PCI_VENDOR_ID_SI, *i, NULL); if ((d = pci_get_device(PCI_VENDOR_ID_SI, *i, NULL))) {
if (dev) { dev_err(&d->dev, "Looked for SIS5595 but found unsupported device %.4x\n", *i);
dev_err(&dev->dev, "Looked for SIS5595 but found unsupported device %.4x\n", *i); pci_dev_put(d);
pci_dev_put(dev);
return -ENODEV; return -ENODEV;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment