mpt2sas: Remove unnecessary use of a boolean variable
Subsystems (2)
PATCH 3/3 mpt2sas: Remove unnecessary use of a boolean variable
Signed-off-by Quentin Lambert <[email protected]>
--- drivers/scsi/mpt2sas/mpt2sas_base.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/scsi/mpt2sas/mpt2sas_base.c +1 -5
@@ -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 )
Signature · 1 line
1.9.1
On Fri, 2014-12-19 at 12:13 +0100, Quentin Lambert wrote:
[]
drivers/scsi/mpt2sas/mpt2sas_base.c
Quoted 1 line
drivers/scsi/mpt2sas/mpt2sas_base.c +0
-0
[]
drivers/scsi/mpt2sas/mpt2sas_base.c _base_enable_msix(struct MPT2SAS_ADAPTER *ioc) · line 1419
Quoted 12 lines
drivers/scsi/mpt2sas/mpt2sas_base.c +1
-5@@ -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;
logic not the same.
Now needs && not ||