]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libsas: Remove redundant assignment to variable res
authorColin Ian King <colin.king@canonical.com>
Wed, 22 Jul 2020 15:44:04 +0000 (16:44 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:09:56 +0000 (22:09 -0400)
commit6e05a54851de5f0e05ac617e746541c6290bc26a
treec96fc05e3c6438f7a06d87ea9a2f3fd56973ee83
parent714755797e86d5318f65fd100d50c879d513970b
scsi: libsas: Remove redundant assignment to variable res

The variable 'res' is being initialized with a value that is never read and
it is being updated later with a new value. The initialization is redundant
and can be removed.

Link: https://lore.kernel.org/r/20200722154404.959267-1-colin.king@canonical.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unused value")
drivers/scsi/libsas/sas_expander.c