mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
scsi: qla2xxx: Remove redundant initialization of variable num_cnt
The variable num_cnt is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20210804131344.112635-1-colin.king@canonical.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Addresses-Coverity: ("Unused value")
This commit is contained in:
parent
e3d2612f58
commit
77d0f07aba
1 changed files with 1 additions and 1 deletions
|
@ -875,7 +875,7 @@ static int
|
|||
qla_edif_app_getfcinfo(scsi_qla_host_t *vha, struct bsg_job *bsg_job)
|
||||
{
|
||||
int32_t rval = 0;
|
||||
int32_t num_cnt = 1;
|
||||
int32_t num_cnt;
|
||||
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
||||
struct app_pinfo_req app_req;
|
||||
struct app_pinfo_reply *app_reply;
|
||||
|
|
Loading…
Add table
Reference in a new issue