mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
[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>
This commit is contained in:
parent
8e65e2f07c
commit
b1cf7a2bc7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user