NTB: remove redundant setting of DB valid mask
authorArindam Nath <arindam.nath@amd.com>
Wed, 5 Feb 2020 15:54:30 +0000 (21:24 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 13 Mar 2020 14:04:20 +0000 (10:04 -0400)
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>
drivers/ntb/hw/amd/ntb_hw_amd.c

index 8a9852343de61b3a19f99c82adf8f7a09eab3d86..04be1482037b9688fd3de623d42ca5a3440d31e3 100644 (file)
@@ -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);