[PATCH v2 3/3] [SCSI] mpt2sas: Remove unnecessary use of a boolean variable

From: Quentin Lambert
Date: Fri Dec 19 2014 - 07:41:17 EST


Signed-off-by: Quentin Lambert <lambert.quentin@xxxxxxxxx>
---
drivers/scsi/mpt2sas/mpt2sas_base.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c
index 58e4521..6cc0591 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.c
@@ -1414,12 +1414,8 @@ _base_enable_msix(struct MPT2SAS_ADAPTER *ioc)
struct msix_entry *entries, *a;
int r;
int i;
- u8 try_msix = 0;

- if (msix_disable == -1 || msix_disable == 0)
- try_msix = 1;
-
- if (!try_msix)
+ if (msix_disable != -1 && msix_disable != 0)
goto try_ioapic;

if (_base_check_enable_msix(ioc) != 0)
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/