summaryrefslogtreecommitdiff
path: root/ctdb/utils
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2011-11-09 15:37:24 +1100
committerMartin Schwenke <martin@meltin.net>2011-11-09 15:37:24 +1100
commit6a746387488fc311b3defdfe5274a2a321098f1e (patch)
tree55f928f264f397b786e26f7c57aa2377619ae244 /ctdb/utils
parentddb0838b7e2267091e78a0070f94f98b775461df (diff)
downloadsamba-6a746387488fc311b3defdfe5274a2a321098f1e.tar.gz
Clean up warnings: remove unused variable alen from scsi_io
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 79d31660c7e612f0290fd085203856ad9e70b26f)
Diffstat (limited to 'ctdb/utils')
-rw-r--r--ctdb/utils/scsi_io/scsi_io.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ctdb/utils/scsi_io/scsi_io.c b/ctdb/utils/scsi_io/scsi_io.c
index a177d726dc7..1a4fe0ef699 100644
--- a/ctdb/utils/scsi_io/scsi_io.c
+++ b/ctdb/utils/scsi_io/scsi_io.c
@@ -230,7 +230,7 @@ int scsi_inquiry(int fd)
unsigned int sense_len=32;
unsigned char sense[sense_len];
- int res, alen, i;
+ int res, i;
cdb[3]=(data_size>>8)&0xff;
cdb[4]=data_size&0xff;
@@ -273,9 +273,6 @@ int scsi_inquiry(int fd)
!!(data[3]&0x10),
data[3]&0x0f);
- /* Additional Length */
- alen=data[4];
-
switch(data[3]&0x0f){
/*SPC-2/SPC-3/SPC-4*/
case 2: