Skip to content

Commit ed3dd9b

Browse files
Leon Romanovskydledford
authored andcommitted
RDMA/hns: Drop local zgid in favor of core defined variable
The zgid is already provided by IB/core, so there is no need in locally defined variable, let's drop it and reuse common one. Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent be0e8f3 commit ed3dd9b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/infiniband/hw/hns/hns_roce_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static int hns_roce_del_gid(const struct ib_gid_attr *attr, void **context)
9999
{
100100
struct hns_roce_dev *hr_dev = to_hr_dev(attr->device);
101101
struct ib_gid_attr zattr = { };
102-
union ib_gid zgid = { {0} };
103102
u8 port = attr->port_num - 1;
104103
unsigned long flags;
105104
int ret;

0 commit comments

Comments
 (0)