projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58df9c
)
hwmon: (sis5595) fix sparse warning
author
Mark M. Hoffman
<mhoffman@lightlink.com>
Sun, 14 Oct 2007 18:57:35 +0000
(14:57 -0400)
committer
Mark M. Hoffman
<mhoffman@lightlink.com>
Sun, 14 Oct 2007 18:57:35 +0000
(14:57 -0400)
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/sis5595.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/sis5595.c
b/drivers/hwmon/sis5595.c
index 79a5376a8d818c18de57471ef609832c87f7184c..860b71ccbb86bde3e27dcc549303d8ea95ee76b8 100644
(file)
--- a/
drivers/hwmon/sis5595.c
+++ b/
drivers/hwmon/sis5595.c
@@
-739,11
+739,10
@@
static int __devinit sis5595_pci_probe(struct pci_dev *dev,
int *i;
for (i = blacklist; *i != 0; i++) {
- struct pci_dev *dev;
- dev = pci_get_device(PCI_VENDOR_ID_SI, *i, NULL);
- if (dev) {
- dev_err(&dev->dev, "Looked for SIS5595 but found unsupported device %.4x\n", *i);
- pci_dev_put(dev);
+ struct pci_dev *d;
+ if ((d = pci_get_device(PCI_VENDOR_ID_SI, *i, NULL))) {
+ dev_err(&d->dev, "Looked for SIS5595 but found unsupported device %.4x\n", *i);
+ pci_dev_put(d);
return -ENODEV;
}
}