scsi: message: fusion: Remove redundant assignment to rc
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 12 May 2021 10:12:07 +0000 (18:12 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 15 May 2021 03:06:02 +0000 (23:06 -0400)
commit96f3903c4c7ac2c2794a9d5d6bbd2c84b079c682
tree6315b64e59213cbd9e068436697cfc8134e43755
parent2e51f78b5d8717bba243f5e857031b1d104a3577
scsi: message: fusion: Remove redundant assignment to rc

Variable rc is set to '-1', but this value is never read as it is
overwritten later. Hence it is a redundant assignment and can be removed.

Clean up the following clang-analyzer warning:

drivers/message/fusion/mptbase.c:6996:2: warning: Value stored to 'rc'
is never read [clang-analyzer-deadcode.DeadStores].

Link: https://lore.kernel.org/r/1620814327-25427-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>
drivers/message/fusion/mptbase.c