diff options
| author | Yue Haibing <[email protected]> | 2018-11-15 10:55:00 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-11-21 16:10:27 -0700 |
| commit | 89180e814aa3cfbdfceaaeed08b6ebab73b1e359 (patch) | |
| tree | c5ce852e99d7769766879263453e83ab4cbd1d80 | |
| parent | 2dc50c5a543148e2a02926214a786805dc4d947b (diff) | |
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 <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
| -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 && |