summaryrefslogtreecommitdiffstats
path: root/drivers
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
parent2dc50c5a543148e2a02926214a786805dc4d947b (diff)
downloadlinux-89180e814aa3cfbdfceaaeed08b6ebab73b1e359.tar.bz2
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')
-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 &&