OSDN Git Service

scsi: qla2xxx: Remove redundant initialization of variable num_cnt
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Aug 2021 13:13:44 +0000 (14:13 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 6 Aug 2021 03:21:08 +0000 (23:21 -0400)
commit77d0f07abada8c9aeb54caba879a298a0b94c02a
treeaa3912a274c085a08c51d57c346a9af44c3b80e8
parente3d2612f583ba6e234cb7fe4559132c8f28905f1
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")
drivers/scsi/qla2xxx/qla_edif.c