summaryrefslogtreecommitdiff
path: root/extras/scsi_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-09-08 22:11:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-08 22:11:04 +0200
commit78715f65c92a8892960e2a5fce945496939f8599 (patch)
treed18981188262514cf5be98702f4cd8bf3b5b39f1 /extras/scsi_id
parent04d4a6f85863552eaedc61cfeef5681776c8bb38 (diff)
fix randonm findings from llvm-clang-analyzer
Thanks to Lennart for the log file!
Diffstat (limited to 'extras/scsi_id')
-rw-r--r--extras/scsi_id/scsi_serial.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/extras/scsi_id/scsi_serial.c b/extras/scsi_id/scsi_serial.c
index 2e9168f941..7b308a935c 100644
--- a/extras/scsi_id/scsi_serial.c
+++ b/extras/scsi_id/scsi_serial.c
@@ -170,7 +170,6 @@ static int scsi_dump_sense(struct udev *udev,
int code;
int sense_class;
int sense_key;
- int descriptor_format;
int asc, ascq;
#ifdef DUMP_SENSE
char out_buffer[256];
@@ -210,7 +209,6 @@ static int scsi_dump_sense(struct udev *udev,
return -1;
}
if ((code == 0x0) || (code == 0x1)) {
- descriptor_format = 0;
sense_key = sense_buffer[2] & 0xf;
if (s < 14) {
/*
@@ -223,7 +221,6 @@ static int scsi_dump_sense(struct udev *udev,
asc = sense_buffer[12];
ascq = sense_buffer[13];
} else if ((code == 0x2) || (code == 0x3)) {
- descriptor_format = 1;
sense_key = sense_buffer[1] & 0xf;
asc = sense_buffer[2];
ascq = sense_buffer[3];