kernel-fxtec-pro1x/drivers/s390/scsi
Christof Schmitt 22ed130719 [SCSI] zfcp: Fix warnings from smatch
The smatch tool from http://repo.or.cz/w/smatch.git warns about this:

drivers/s390/scsi/zfcp_scsi.c +64 zfcp_scsi_command_fail(5) warn: variable dereferenced before check 'scpnt->device'
drivers/s390/scsi/zfcp_scsi.c +64 zfcp_scsi_command_fail(5) warn: variable dereferenced before check 'scpnt->device->host'
drivers/s390/scsi/zfcp_scsi.c +93 zfcp_scsi_queuecommand(23) warn: variable dereferenced before check 'unit'

Fix the first two warnings by removing the checks for scpnt->device
and -> host: As long as the SCSI command exists, there is also a
scsi_device and a Scsi_Host.

Fix the last warning by removing the BUG_ON checks in
zfcp_scsi_queuecommand, they are leftovers from previous paranoia
about wrong pointers between data structures.

Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-02-17 17:46:24 -06:00
..
Makefile [SCSI] zfcp: consolidate sysfs things into one file. 2008-07-12 08:22:35 -05:00
zfcp_aux.c [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_ccw.c [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_cfdc.c [SCSI] zfcp: add missing compat ptr conversion 2010-01-17 12:38:49 -06:00
zfcp_dbf.c [SCSI] zfcp: Remove function zfcp_reqlist_find_safe 2010-02-17 17:46:17 -06:00
zfcp_dbf.h [SCSI] zfcp: Remove unused payload field from zfcp_dbf_san_record 2010-02-17 17:46:22 -06:00
zfcp_def.h [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_erp.c [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_ext.h [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_fc.c [SCSI] zfcp: Set hardware timeout as requested by BSG request. 2010-01-17 12:40:13 -06:00
zfcp_fc.h [SCSI] zfcp: Set hardware timeout as requested by BSG request. 2010-01-17 12:40:13 -06:00
zfcp_fsf.c [SCSI] zfcp: Remove two FIXME comments 2010-02-17 17:46:21 -06:00
zfcp_fsf.h [SCSI] zfcp: Simplify handling of ct and els requests 2009-12-04 12:02:15 -06:00
zfcp_qdio.c [SCSI] zfcp: Remove two FIXME comments 2010-02-17 17:46:21 -06:00
zfcp_reqlist.h [SCSI] zfcp: Move FSF request tracking code to new file 2010-02-17 17:46:19 -06:00
zfcp_scsi.c [SCSI] zfcp: Fix warnings from smatch 2010-02-17 17:46:24 -06:00
zfcp_sysfs.c [SCSI] zfcp: Assign scheduled work to driver queue 2009-12-04 12:02:08 -06:00