diff options
author | Bradley Grove <bgrove@attotech.com> | 2013-08-29 15:55:39 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-06 13:37:19 -0400 |
commit | c88d2dddb0b84aaa1de2985627c081c9742667ae (patch) | |
tree | 5f6e74647f15e5544c69d7e0ae4c85abb11e0c15 | |
parent | 1f962ebcdfa15cede59e9edb299d1330949eec92 (diff) |
[SCSI] esas2r: smatch - Use biwise rather than logical AND for checking if any bit set
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/esas2r/esas2r_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c index 3a798e7d5c56..78b18c1eb435 100644 --- a/drivers/scsi/esas2r/esas2r_init.c +++ b/drivers/scsi/esas2r/esas2r_init.c | |||
@@ -808,7 +808,7 @@ static void esas2r_init_pci_cfg_space(struct esas2r_adapter *a) | |||
808 | int pcie_cap_reg; | 808 | int pcie_cap_reg; |
809 | 809 | ||
810 | pcie_cap_reg = pci_find_capability(a->pcid, PCI_CAP_ID_EXP); | 810 | pcie_cap_reg = pci_find_capability(a->pcid, PCI_CAP_ID_EXP); |
811 | if (0xffff && pcie_cap_reg) { | 811 | if (0xffff & pcie_cap_reg) { |
812 | u16 devcontrol; | 812 | u16 devcontrol; |
813 | 813 | ||
814 | pci_read_config_word(a->pcid, pcie_cap_reg + PCI_EXP_DEVCTL, | 814 | pci_read_config_word(a->pcid, pcie_cap_reg + PCI_EXP_DEVCTL, |