]> 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)
commitec61910ee18058ae221d82a50977d2bd6f811941
tree3f1ce51a73f4798ffceade709ded7561c4cb0cbb
parent7c8dcbdf782f8eb5acd8722b0a362a3139291db2
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