scsi: lpfc: remove useless code in lpfc_sli4_bsg_link_diag_test
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 22 Aug 2017 20:53:53 +0000 (15:53 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:09 +0000 (22:29 -0400)
commit44ed33e6c5d58342a9bc86172ad121c0687bb890
tree7a48860c784061b54e1c4c244dc6252ee99b893b
parent6a8dadcca81fceff9976e8828cceb072873b7bd5
scsi: lpfc: remove useless code in lpfc_sli4_bsg_link_diag_test

Remove variable assignments. The value stored in local variable _rc_ is
overwritten at line 2448:rc = lpfc_sli4_bsg_set_link_diag_state(phba,
0); before it can be used.

Addresses-Coverity-ID: 1226935
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_bsg.c