OSDN Git Service

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)
commit55eb809f5e1c6d2a57e4c24a574fe09065e62534
treec96fc05e3c6438f7a06d87ea9a2f3fd56973ee83
parent386533796574bcdfe25ef3b8c520bc5f3a9d7c89
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