projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0e8f3
)
RDMA/hns: Drop local zgid in favor of core defined variable
author
Leon Romanovsky
<leonro@mellanox.com>
Wed, 2 May 2018 10:15:24 +0000
(13:15 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 9 May 2018 16:08:21 +0000
(12:08 -0400)
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>
drivers/infiniband/hw/hns/hns_roce_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_main.c
b/drivers/infiniband/hw/hns/hns_roce_main.c
index 9d48bc07a9e683a22f91c8cac02a273e7f768a9c..1b79a388e9d1b9f49eb94457fb76d2f3e831a2c3 100644
(file)
--- a/
drivers/infiniband/hw/hns/hns_roce_main.c
+++ b/
drivers/infiniband/hw/hns/hns_roce_main.c
@@
-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 ib_gid_attr zattr = { };
- union ib_gid zgid = { {0} };
u8 port = attr->port_num - 1;
unsigned long flags;
int ret;