summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/esas2r/esas2r_init.c
diff options
context:
space:
mode:
authorBradley Grove <bgrove@attotech.com>2013-10-01 20:26:03 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-10-25 10:58:59 +0200
commitb1cf7a2bc7c372c856cdf542c41d7fe527e4b5d6 (patch)
treed170d323ab086e63f2ff39598cdad21b118caf5f /drivers/scsi/esas2r/esas2r_init.c
parent[SCSI] esas2r: Fixes for big-endian platforms (diff)
downloadlinux-b1cf7a2bc7c372c856cdf542c41d7fe527e4b5d6.tar.xz
linux-b1cf7a2bc7c372c856cdf542c41d7fe527e4b5d6.zip
[SCSI] esas2r: Remove superfluous mask of pcie_cap_reg
Signed-off-by: Bradley Grove <bgrove@attotech.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r_init.c')
-rw-r--r--drivers/scsi/esas2r/esas2r_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c
index 8278819669e3..b9750e296d71 100644
--- a/drivers/scsi/esas2r/esas2r_init.c
+++ b/drivers/scsi/esas2r/esas2r_init.c
@@ -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,