]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
IB/srpt: Drop pointless static qualifier in srpt_make_tpg()
authorYue Haibing <yuehaibing@huawei.com>
Thu, 15 Nov 2018 10:55:00 +0000 (10:55 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Nov 2018 23:10:27 +0000 (16:10 -0700)
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>
drivers/infiniband/ulp/srpt/ib_srpt.c

index 2357aa727dcf593336ee3d92c7547c2f3afbf86b..adc0e91d2bb568359eb1352d33d6c20060c23aae 100644 (file)
@@ -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 &&