linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] nvme-fabrics: correct some printk information
@ 2016-12-10  9:06 Dan Carpenter
  2016-12-10 11:27 ` Joe Perches
  2016-12-20  0:40 ` James Smart
  0 siblings, 2 replies; 16+ messages in thread
From: Dan Carpenter @ 2016-12-10  9:06 UTC (permalink / raw)
  To: James Smart
  Cc: Keith Busch, Jens Axboe, linux-nvme, linux-kernel, kernel-janitors

We really don't care where "ctrl" is on the stack since we're just
returning soon what we want is the actual ctrl pointer itself.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index 771e2e761872..e6395ed2f562 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -2402,7 +2402,7 @@ enum blk_eh_timer_return
 
 	dev_info(ctrl->ctrl.device,
 		"NVME-FC{%d}: new ctrl: NQN \"%s\" (%p)\n",
-		ctrl->cnum, ctrl->ctrl.opts->subsysnqn, &ctrl);
+		ctrl->cnum, ctrl->ctrl.opts->subsysnqn, ctrl);
 
 	kref_get(&ctrl->ctrl.kref);
 

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-12-20  9:17 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-10  9:06 [patch] nvme-fabrics: correct some printk information Dan Carpenter
2016-12-10 11:27 ` Joe Perches
2016-12-10 18:55   ` Dan Carpenter
2016-12-10 20:06     ` Julia Lawall
2016-12-10 20:24       ` Dan Carpenter
2016-12-10 20:54       ` Joe Perches
2016-12-10 21:07         ` Dan Carpenter
2016-12-10 22:24           ` Joe Perches
2016-12-12  9:33             ` Dan Carpenter
2016-12-12 15:47               ` Julia Lawall
2016-12-12 15:55                 ` Joe Perches
2016-12-10 22:07         ` Julia Lawall
2016-12-10 22:27           ` Joe Perches
2016-12-11  0:36       ` Joe Perches
2016-12-20  0:40 ` James Smart
2016-12-20  9:16   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).