summaryrefslogtreecommitdiff
path: root/block/bsg.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2015-12-01 12:16:46 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2015-12-03 00:33:21 +0300
commitd3692a3d13e8ee2e371907d67d585d42297b4d66 (patch)
treebafc100fd1bf84d637917e523b874ec39108611b /block/bsg.c
parent6cc05d451cfa876014ef607516f730623e317987 (diff)
downloadlinux-d3692a3d13e8ee2e371907d67d585d42297b4d66.tar.xz
scsi_dh_alua: sanitze sense code handling
The only check for a valid sense code is calling scsi_normalize_sense() and check the return value. So drop the pointless checks and rely on scsi_normalize_sense() to figure out if the sense code is valid. With that we can also remove the 'senselen' field. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com> Reviewed-by: Bart van Assche <bvanassche@sandisk.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions