]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorhba: remove redundant initialization of variables scsicmd_id...
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Jul 2020 15:54:15 +0000 (16:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 18:34:34 +0000 (20:34 +0200)
commit445d79ecbcedfc5cc73692a962a31694de50da23
tree3f1ce51a73f4798ffceade709ded7561c4cb0cbb
parent31fcd836e48775c0dabef1b12765eaa1b023bd79
staging: unisys: visorhba: remove redundant initialization of variables scsicmd_id and rc

The variables scsicmd_id and rc is being initialized with a value
that is never read and are being updated later with a new value.
The initializations are redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200723155415.994036-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorhba/visorhba_main.c