scsi_dh_alua: sanitze sense code handling
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:46 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 21:33:21 +0000 (16:33 -0500)
commitd3692a3d13e8ee2e371907d67d585d42297b4d66
treebafc100fd1bf84d637917e523b874ec39108611b
parent6cc05d451cfa876014ef607516f730623e317987
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>
drivers/scsi/device_handler/scsi_dh_alua.c
This page took 0.044139 seconds and 5 git commands to generate.