summaryrefslogtreecommitdiff
path: root/drivers/ntb
diff options
context:
space:
mode:
authorArindam Nath <arindam.nath@amd.com>2020-02-05 21:24:30 +0530
committerJon Mason <jdmason@kudzu.us>2020-03-13 10:04:20 -0400
commit41dfc3f79650504f5047f20a4faacaff217ce37b (patch)
tree0442d555311099ecea8dd54318e65f664c3e1e9f /drivers/ntb
parent5f0856bebc6e02a57b36cd2146f056c71862f0b6 (diff)
downloadlinux-rpi-41dfc3f79650504f5047f20a4faacaff217ce37b.tar.gz
linux-rpi-41dfc3f79650504f5047f20a4faacaff217ce37b.tar.bz2
linux-rpi-41dfc3f79650504f5047f20a4faacaff217ce37b.zip
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 <arindam.nath@amd.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/hw/amd/ntb_hw_amd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c
index 8a9852343de6..04be1482037b 100644
--- a/drivers/ntb/hw/amd/ntb_hw_amd.c
+++ b/drivers/ntb/hw/amd/ntb_hw_amd.c
@@ -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);