OSDN Git Service

scsi: mptfusion: Remove redundant variable r
authorColin Ian King <colin.i.king@gmail.com>
Sun, 5 Dec 2021 22:59:01 +0000 (22:59 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Dec 2021 03:22:18 +0000 (22:22 -0500)
commitc27fd25db39b8f16aeda8563d4be6f33e59d07d1
tree81b8a417a48e8903cda2a82fb33fd3d625cc0d05
parent4c3e3f8cfc05116d1adf83d95322090f335d2091
scsi: mptfusion: Remove redundant variable r

Variable r is being assigned a value that is never read. The assignment is
redundant and so is the variable, so remove these. Remove unnecessary the
{} braces in the if statement too.

Link: https://lore.kernel.org/r/20211205225901.54362-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptbase.c