[SCSI] esas2r: Remove superfluous mask of pcie_cap_reg
authorBradley Grove <bgrove@attotech.com>
Tue, 1 Oct 2013 18:26:03 +0000 (14:26 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:58:59 +0000 (09:58 +0100)
Signed-off-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/esas2r/esas2r_init.c

index 8278819669e3baffbe3e182fe77b9820fb933915..b9750e296d7116ab38f91017a82eb98279c3ed1e 100644 (file)
@@ -807,7 +807,7 @@ static void esas2r_init_pci_cfg_space(struct esas2r_adapter *a)
        int pcie_cap_reg;
 
        pcie_cap_reg = pci_find_capability(a->pcid, PCI_CAP_ID_EXP);
-       if (0xffff & pcie_cap_reg) {
+       if (pcie_cap_reg) {
                u16 devcontrol;
 
                pci_read_config_word(a->pcid, pcie_cap_reg + PCI_EXP_DEVCTL,
This page took 0.030626 seconds and 5 git commands to generate.