diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-09-01 17:17:23 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-09-02 20:10:07 +0200 |
commit | 75e215f2cf53d3f85413e333573560458d89f7f1 (patch) | |
tree | 86b9782d6d5065e315004ebadb2c27e00a1738b5 /linux/src | |
parent | 3084fed6f379ae6722003364e0f4427e1852e9c1 (diff) |
Disable set but unused variable
* linux/src/drivers/scsi/gdth.c (gdth_detect): Conditionalize `b' on
[LINUX_VERSION_CODE < 0x020000]. Do not preset it to 0, it's initialized
later on when needed.
Diffstat (limited to 'linux/src')
-rw-r--r-- | linux/src/drivers/scsi/gdth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/src/drivers/scsi/gdth.c b/linux/src/drivers/scsi/gdth.c index 6cc2b78..0a4bef8 100644 --- a/linux/src/drivers/scsi/gdth.c +++ b/linux/src/drivers/scsi/gdth.c @@ -2851,8 +2851,9 @@ __initfunc (int gdth_detect(Scsi_Host_Template *shtp)) ushort eisa_slot,device_id,index; gdth_pci_str pcistr; int i,j,hanum; +#if LINUX_VERSION_CODE < 0x020000 unchar b; - +#endif #ifdef DEBUG_GDTH printk("GDT: This driver contains debugging information !! Trace level = %d\n", @@ -2878,7 +2879,7 @@ __initfunc (int gdth_detect(Scsi_Host_Template *shtp)) } /* initializations */ - gdth_polling = TRUE; b = 0; + gdth_polling = TRUE; for (i=0; i<GDTH_MAXCMDS; ++i) for (j=0; j<MAXHA; ++j) gdth_cmd_tab[i][j].cmnd = UNUSED_CMND; |