]> git.karo-electronics.de Git - linux-beck.git/commitdiff
nvme/fc: correct some printk information
authorJames Smart <james.smart@broadcom.com>
Tue, 20 Dec 2016 19:06:08 +0000 (11:06 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Dec 2016 10:33:31 +0000 (11:33 +0100)
Dan Carpenters's tool caught a pointer reference - should have been
just ptr, not &ptr.

Don't bother. Remove the pointer value in the printf. Its irrelevant.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c

index 771e2e76187222dfb71616f5665c7b2b22802c74..827c2b57e5bb8fc225229ed1dd135be029c98e12 100644 (file)
@@ -2401,8 +2401,8 @@ __nvme_fc_create_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
        WARN_ON_ONCE(!changed);
 
        dev_info(ctrl->ctrl.device,
-               "NVME-FC{%d}: new ctrl: NQN \"%s\" (%p)\n",
-               ctrl->cnum, ctrl->ctrl.opts->subsysnqn, &ctrl);
+               "NVME-FC{%d}: new ctrl: NQN \"%s\"\n",
+               ctrl->cnum, ctrl->ctrl.opts->subsysnqn);
 
        kref_get(&ctrl->ctrl.kref);