Re: [PATCH 06/36] scsi_dh_alua: sanitze sense code handling

2015-10-01 Thread Bart Van Assche
On 09/29/2015 03:47 AM, Hannes Reinecke wrote: 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'

[PATCH 06/36] scsi_dh_alua: sanitze sense code handling

2015-09-29 Thread Hannes Reinecke
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 --- driv