Skip to content

Commit 41dfc3f

Browse files
amd-anathjonmason
authored andcommitted
NTB: remove redundant setting of DB valid mask
db_valid_mask is set at two places, once within amd_init_ntb(), and again within amd_init_dev(). Since amd_init_ntb() is actually called from amd_init_dev(), setting db_valid_mask from former does not really make sense. So remove it. Signed-off-by: Arindam Nath <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent 5f0856b commit 41dfc3f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/ntb/hw/amd/ntb_hw_amd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,6 @@ static int amd_init_ntb(struct amd_ntb_dev *ndev)
10561056
return -EINVAL;
10571057
}
10581058

1059-
ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1;
1060-
10611059
/* Mask event interrupts */
10621060
writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET);
10631061

0 commit comments

Comments
 (0)