mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
scsi: snic: vnic_dev: Remove dead store in vnic_dev_discover_res()
The assignment 'len = count' for RES_TYPE_INTR_PBA_LEGACY, RES_TYPE_DEVCMD, and RES_TYPE_DEVCMD2 cases is never used. Drop the unused assignments to fix the following static analyzer warning. No functional change. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Evgenii Burenchev <evg28bur@yandex.ru> Acked-by: Narsimhulu Musini <nmusini@cisco.com> Link: https://patch.msgid.link/20260429095212.11251-1-evg28bur@yandex.ru Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
877073467d
commit
195254aded
|
|
@ -132,7 +132,6 @@ static int vnic_dev_discover_res(struct vnic_dev *vdev,
|
|||
case RES_TYPE_INTR_PBA_LEGACY:
|
||||
case RES_TYPE_DEVCMD:
|
||||
case RES_TYPE_DEVCMD2:
|
||||
len = count;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user