diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-02-06 09:03:16 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-02-13 21:37:00 -0500 |
commit | 8d6febb0ccac88261fd50d425fceeca215551f11 (patch) | |
tree | c1f14713934aa68985f0d7efdb8fa1715c232bab /drivers/scsi/qedf | |
parent | 779936faf4f1210a2a6c3a2ccc63cd74a61769ed (diff) |
scsi: qedf: remove redundant initialization of 'fcport'
Pointer fcport is initialized with a value that is never read, it is
re-assigned a new value later on, hence the initialization is redundant
and can be removed.
Cleans up clang warning:
drivers/scsi/qedf/qedf_io.c:920:21: warning: Value stored to 'fcport'
during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r-- | drivers/scsi/qedf/qedf_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index b15e69586a36..50a50c4249d0 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c | |||
@@ -917,7 +917,7 @@ qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) | |||
917 | struct qedf_ctx *qedf = lport_priv(lport); | 917 | struct qedf_ctx *qedf = lport_priv(lport); |
918 | struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); | 918 | struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); |
919 | struct fc_rport_libfc_priv *rp = rport->dd_data; | 919 | struct fc_rport_libfc_priv *rp = rport->dd_data; |
920 | struct qedf_rport *fcport = rport->dd_data; | 920 | struct qedf_rport *fcport; |
921 | struct qedf_ioreq *io_req; | 921 | struct qedf_ioreq *io_req; |
922 | int rc = 0; | 922 | int rc = 0; |
923 | int rval; | 923 | int rval; |