From: Bradley Grove Date: Tue, 1 Oct 2013 18:26:03 +0000 (-0400) Subject: [SCSI] esas2r: Remove superfluous mask of pcie_cap_reg X-Git-Tag: firefly_0821_release~176^2~4986^2~14 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b1cf7a2bc7c372c856cdf542c41d7fe527e4b5d6;p=firefly-linux-kernel-4.4.55.git [SCSI] esas2r: Remove superfluous mask of pcie_cap_reg Signed-off-by: Bradley Grove Signed-off-by: James Bottomley --- 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,