mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
2dc50c5a54
commit
89180e814a
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue