Skip to content

Commit

Permalink
NTB: remove redundant setting of DB valid mask
Browse files Browse the repository at this point in the history
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 <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
  • Loading branch information
Arindam Nath authored and Jon Mason committed Mar 13, 2020
1 parent 5f0856b commit 41dfc3f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/ntb/hw/amd/ntb_hw_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,6 @@ static int amd_init_ntb(struct amd_ntb_dev *ndev)
return -EINVAL;
}

ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1;

/* Mask event interrupts */
writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET);

Expand Down

0 comments on commit 41dfc3f

Please sign in to comment.