]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nvmet-fc: eliminate incorrect static markers on local variables
authorJames Smart <jsmart2021@gmail.com>
Wed, 16 Aug 2017 17:47:03 +0000 (10:47 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Aug 2017 07:35:08 +0000 (09:35 +0200)
There were 2 statics introduced that were bogus. Removed the static
designations.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/fc.c

index b200f9aadd52011d60403b88248019e88b8f6b74..309c84aa7595b9b2ffab72c8a632c97f29def6d1 100644 (file)
@@ -394,7 +394,7 @@ nvmet_fc_free_ls_iodlist(struct nvmet_fc_tgtport *tgtport)
 static struct nvmet_fc_ls_iod *
 nvmet_fc_alloc_ls_iod(struct nvmet_fc_tgtport *tgtport)
 {
-       static struct nvmet_fc_ls_iod *iod;
+       struct nvmet_fc_ls_iod *iod;
        unsigned long flags;
 
        spin_lock_irqsave(&tgtport->lock, flags);
@@ -471,7 +471,7 @@ nvmet_fc_destroy_fcp_iodlist(struct nvmet_fc_tgtport *tgtport,
 static struct nvmet_fc_fcp_iod *
 nvmet_fc_alloc_fcp_iod(struct nvmet_fc_tgt_queue *queue)
 {
-       static struct nvmet_fc_fcp_iod *fod;
+       struct nvmet_fc_fcp_iod *fod;
 
        lockdep_assert_held(&queue->qlock);