summaryrefslogtreecommitdiff
path: root/linux/src/drivers
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-09-01 17:17:22 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-02 20:07:03 +0200
commit3084fed6f379ae6722003364e0f4427e1852e9c1 (patch)
treeb8c239320be92dcbc2c057dc8e3633bb4d260a3d /linux/src/drivers
parentc02c5e5cd633227dd5cfa33367802a01c63347e9 (diff)
Remove set but unused variables
* linux/dev/drivers/block/floppy.c (setup_rw_floppy): Remove `dflags'. (floppy_eject): Remove `dummy'. * linux/src/drivers/net/8390.c (ethdev_init): Remove `ei_local'. * linux/src/drivers/scsi/ppa.c (ppa_detect): Remove `ppb'.
Diffstat (limited to 'linux/src/drivers')
-rw-r--r--linux/src/drivers/net/8390.c3
-rw-r--r--linux/src/drivers/scsi/ppa.c3
2 files changed, 1 insertions, 5 deletions
diff --git a/linux/src/drivers/net/8390.c b/linux/src/drivers/net/8390.c
index 9864106..93c485d 100644
--- a/linux/src/drivers/net/8390.c
+++ b/linux/src/drivers/net/8390.c
@@ -706,13 +706,10 @@ int ethdev_init(struct device *dev)
printk(version);
if (dev->priv == NULL) {
- struct ei_device *ei_local;
-
dev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
if (dev->priv == NULL)
return -ENOMEM;
memset(dev->priv, 0, sizeof(struct ei_device));
- ei_local = (struct ei_device *)dev->priv;
}
dev->hard_start_xmit = &ei_start_xmit;
diff --git a/linux/src/drivers/scsi/ppa.c b/linux/src/drivers/scsi/ppa.c
index 5063a67..e5e0cb8 100644
--- a/linux/src/drivers/scsi/ppa.c
+++ b/linux/src/drivers/scsi/ppa.c
@@ -259,7 +259,6 @@ int ppa_detect(Scsi_Host_Template * host)
struct Scsi_Host *hreg;
int ports;
int i, nhosts;
- unsigned short ppb;
printk("ppa: Version %s\n", PPA_VERSION);
nhosts = 0;
@@ -267,7 +266,7 @@ int ppa_detect(Scsi_Host_Template * host)
for (i = 0; i < parbus_no; i++) {
if (parbus_base[i] == 0x0000)
continue;
- ppb = ppa_hosts[i].base = parbus_base[i];
+ ppa_hosts[i].base = parbus_base[i];
/* sanity checks */
if (check_region(parbus_base[i],