diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-24 05:31:15 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-10 11:27:36 +0200 |
commit | 30e888c20ad25db97a1482aebe76947094a91773 (patch) | |
tree | 111962b9742e1f81c069a0a94c6f59c3fa061ab0 /src/udev/scsi_id | |
parent | udev/scsi_id: coding style fixes (diff) | |
download | systemd-30e888c20ad25db97a1482aebe76947094a91773.tar.xz systemd-30e888c20ad25db97a1482aebe76947094a91773.zip |
udev/scsi_id: drop never used code blocks
Diffstat (limited to 'src/udev/scsi_id')
-rw-r--r-- | src/udev/scsi_id/scsi_serial.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/udev/scsi_id/scsi_serial.c b/src/udev/scsi_id/scsi_serial.c index 39a748c72c..dfdbb5f0aa 100644 --- a/src/udev/scsi_id/scsi_serial.c +++ b/src/udev/scsi_id/scsi_serial.c @@ -155,10 +155,6 @@ static int scsi_dump_sense(struct scsi_id_device *dev_scsi, int sense_class; int sense_key; int asc, ascq; -#ifdef DUMP_SENSE - char out_buffer[256]; - int i, j; -#endif /* * Figure out and print the sense key, asc and ascq. @@ -230,17 +226,6 @@ static int scsi_dump_sense(struct scsi_id_device *dev_scsi, } -#ifdef DUMP_SENSE - for (i = 0, j = 0; (i < s) && (j < 254); i++) { - out_buffer[j++] = hex_str[(sense_buffer[i] & 0xf0) >> 4]; - out_buffer[j++] = hex_str[sense_buffer[i] & 0x0f]; - out_buffer[j++] = ' '; - } - out_buffer[j] = '\0'; - log_debug("%s: sense dump:", dev_scsi->kernel); - log_debug("%s: %s", dev_scsi->kernel, out_buffer); - -#endif return -1; } |