[Pommed-commits] [SCM] pommed - hotkeys handler for Apple laptops branch, master, updated. 1.25-10-gd4d3b61
Julien BLACHE
jb at jblache.org
Sat Mar 14 10:35:10 UTC 2009
The following commit has been merged in the master branch:
commit d5089a5731ba76c82462385bab26e22413e1de38
Author: Julien BLACHE <jb at jblache.org>
Date: Sat Mar 14 11:27:12 2009 +0100
Remove useless variable from init routine.
diff --git a/pommed/mactel/nv8600mgt_backlight.c b/pommed/mactel/nv8600mgt_backlight.c
index 8489ef9..9c6e18e 100644
--- a/pommed/mactel/nv8600mgt_backlight.c
+++ b/pommed/mactel/nv8600mgt_backlight.c
@@ -188,7 +188,6 @@ nv8600mgt_backlight_probe(void)
{
struct pci_access *pacc;
struct pci_dev *dev;
- int nv_found = 0;
int ret;
pacc = pci_alloc();
@@ -211,15 +210,13 @@ nv8600mgt_backlight_probe(void)
|| (dev->device_id == PCI_ID_PRODUCT_9400M)
|| (dev->device_id == PCI_ID_PRODUCT_9600MGT)))
{
- nv_found = 1;
-
break;
}
}
pci_cleanup(pacc);
- if (!nv_found)
+ if (!dev)
{
logdebug("Failed to detect nVidia GeForce 8600M GT/9400M/9600M GT, aborting...\n");
return -1;
--
pommed - hotkeys handler for Apple laptops
More information about the Pommed-commits
mailing list