Re: [PATCH 1/3] scsi_debug: scsi_cmnd->cmnd check and casts unnecessary

2014-08-18 Thread Martin K. Petersen
> "Doug" == Douglas Gilbert writes: Doug> This patch removes a NULL check for the scsi_cmnd::cmnd pointer Doug> since many other instances in this driver and elsewhere assume it Doug> is valid. Also redundant casts to 'unsigned char *' are removed as Doug> the pointer has that type. Doug> Si

[PATCH 1/3] scsi_debug: scsi_cmnd->cmnd check and casts unnecessary

2014-08-05 Thread Douglas Gilbert
This patch removes a NULL check for the scsi_cmnd::cmnd pointer since many other instances in this driver and elsewhere assume it is valid. Also redundant casts to 'unsigned char *' are removed as the pointer has that type. Signed-off-by: Douglas Gilbert --- drivers/scsi/scsi_debug.c | 22 +++