aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srpt/ib_srpt.c
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2018-11-15 10:55:00 +0000
committerJason Gunthorpe <jgg@mellanox.com>2018-11-21 16:10:27 -0700
commit89180e814aa3cfbdfceaaeed08b6ebab73b1e359 (patch)
treec5ce852e99d7769766879263453e83ab4cbd1d80 /drivers/infiniband/ulp/srpt/ib_srpt.c
parentRDMA/core: Remove unused header files mm.h, socket.h, scatterlist.h (diff)
downloadlinux-dev-89180e814aa3cfbdfceaaeed08b6ebab73b1e359.tar.xz
linux-dev-89180e814aa3cfbdfceaaeed08b6ebab73b1e359.zip
IB/srpt: Drop pointless static qualifier in srpt_make_tpg()
There is no need to have the 'struct se_portal_group *tpg' variable static since new value always be assigned before use. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp/srpt/ib_srpt.c')
-rw-r--r--drivers/infiniband/ulp/srpt/ib_srpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index 2357aa727dcf..adc0e91d2bb5 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -3617,7 +3617,7 @@ static struct se_portal_group *srpt_make_tpg(struct se_wwn *wwn,
const char *name)
{
struct srpt_port *sport = wwn->priv;
- static struct se_portal_group *tpg;
+ struct se_portal_group *tpg;
int res;
WARN_ON_ONCE(wwn != &sport->port_guid_wwn &&