]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_debug: scsi_cmnd->cmnd check and casts unnecessary
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 5 Aug 2014 10:20:02 +0000 (12:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:09:50 +0000 (09:09 -0700)
commit760ea775b38dcc6f6760d943f2b7bcd7167ae0a1
tree7de15b76d85a209a5c65ed29cfa20ea4cdc9a655
parent4ace3923de5c0b9f830119ca465bc747b4804478
scsi_debug: scsi_cmnd->cmnd check and casts unnecessary

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 <dgilbert@interlog.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_debug.c