Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yue Haibing and committed by
Jason Gunthorpe
89180e81 2dc50c5a

+1 -1
+1 -1
drivers/infiniband/ulp/srpt/ib_srpt.c
··· 3617 3617 const char *name) 3618 3618 { 3619 3619 struct srpt_port *sport = wwn->priv; 3620 - static struct se_portal_group *tpg; 3620 + struct se_portal_group *tpg; 3621 3621 int res; 3622 3622 3623 3623 WARN_ON_ONCE(wwn != &sport->port_guid_wwn &&