Skip to content

Commit 747125d

Browse files
committed
thunderbolt: Drop unnecessary read when writing LC command in Ice Lake
The read is not needed as we overwrite the returned value in the next line anyway so drop it. Fixes: 3cdb944 ("thunderbolt: Add support for Intel Ice Lake") Reported-by: Nicholas Johnson <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
1 parent 6f67097 commit 747125d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/thunderbolt/nhi_ops.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static void icl_nhi_lc_mailbox_cmd(struct tb_nhi *nhi, enum icl_lc_mailbox_cmd c
8080
{
8181
u32 data;
8282

83-
pci_read_config_dword(nhi->pdev, VS_CAP_19, &data);
8483
data = (cmd << VS_CAP_19_CMD_SHIFT) & VS_CAP_19_CMD_MASK;
8584
pci_write_config_dword(nhi->pdev, VS_CAP_19, data | VS_CAP_19_VALID);
8685
}

0 commit comments

Comments
 (0)