diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-05-10 18:40:06 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-05-21 22:58:49 -0400 |
commit | cb9eb11fd57215020c6649bbe884232fb0f80bdd (patch) | |
tree | e20924b7edbc83ab17df0da1c2cac164dcfd3d85 /drivers/scsi/device_handler | |
parent | 5ac3c649f11cb457dd40f6dde58cb029181c2700 (diff) | |
download | lwn-cb9eb11fd57215020c6649bbe884232fb0f80bdd.tar.gz lwn-cb9eb11fd57215020c6649bbe884232fb0f80bdd.zip |
scsi: qla2xxx: Remove redundant assignment to rval
Variable rval is set to QLA_SUCCESS but this value is never read as it is
overwritten later on. Hence it is a redundant assignment and can be
removed.
Clean up the following clang-analyzer warning:
drivers/scsi/qla2xxx/qla_init.c:4359:2: warning: Value stored to 'rval'
is never read [clang-analyzer-deadcode.DeadStores].
Link: https://lore.kernel.org/r/1620643206-127930-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/device_handler')
0 files changed, 0 insertions, 0 deletions