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 <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
be0e8f34b6
commit
ed3dd9b017
|
@ -99,7 +99,6 @@ static int hns_roce_del_gid(const struct ib_gid_attr *attr, void **context)
|
||||||
{
|
{
|
||||||
struct hns_roce_dev *hr_dev = to_hr_dev(attr->device);
|
struct hns_roce_dev *hr_dev = to_hr_dev(attr->device);
|
||||||
struct ib_gid_attr zattr = { };
|
struct ib_gid_attr zattr = { };
|
||||||
union ib_gid zgid = { {0} };
|
|
||||||
u8 port = attr->port_num - 1;
|
u8 port = attr->port_num - 1;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
Loading…
Reference in New Issue