diff options
author | Yue Haibing <yuehaibing@huawei.com> | 2018-11-15 11:55:00 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-22 00:10:27 +0100 |
commit | 89180e814aa3cfbdfceaaeed08b6ebab73b1e359 (patch) | |
tree | c5ce852e99d7769766879263453e83ab4cbd1d80 /drivers/infiniband/ulp | |
parent | RDMA/core: Remove unused header files mm.h, socket.h, scatterlist.h (diff) | |
download | linux-89180e814aa3cfbdfceaaeed08b6ebab73b1e359.tar.xz linux-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')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 2 |
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 && |