From: Douglas Gilbert Date: Tue, 5 Aug 2014 10:20:02 +0000 (+0200) Subject: scsi_debug: scsi_cmnd->cmnd check and casts unnecessary X-Git-Tag: fixes-for-v3.18-merge-window~25^2^2~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01123ef4c3fc9b9ff3062df2e10dee9b139b46b4;p=pandora-kernel.git 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 Reviewed-by: Martin K. Petersen Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed