kernel_optimize_test/drivers/scsi/device_handler
Hannes Reinecke d3692a3d13 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>
2015-12-02 16:33:21 -05:00
..
Kconfig scsi_dh: integrate into the core SCSI code 2015-08-28 13:14:56 -07:00
Makefile scsi_dh: integrate into the core SCSI code 2015-08-28 13:14:56 -07:00
scsi_dh_alua.c scsi_dh_alua: sanitze sense code handling 2015-12-02 16:33:21 -05:00
scsi_dh_emc.c scsi_dh: kill struct scsi_dh_data 2015-08-28 13:14:57 -07:00
scsi_dh_hp_sw.c scsi_dh: kill struct scsi_dh_data 2015-08-28 13:14:57 -07:00
scsi_dh_rdac.c scsi_dh: kill struct scsi_dh_data 2015-08-28 13:14:57 -07:00