From: Leon Romanovsky Date: Wed, 2 May 2018 10:15:24 +0000 (+0300) Subject: RDMA/hns: Drop local zgid in favor of core defined variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ed3dd9b017b85e00a459c35bd4d3fe2b83b0d092;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/hns/hns_roce_main.c b/drivers/infiniband/hw/hns/hns_roce_main.c index 9d48bc07a9e6..1b79a388e9d1 100644 --- 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;