[PATCH] NVMe: Fix uninitialized iod compiler warning

Keith Busch keith.busch at intel.com
Fri Jul 27 13:53:28 EDT 2012


Signed-off-by: Keith Busch <keith.busch at intel.com>
---
 drivers/block/nvme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index 7bcd882..47578ba 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -1157,7 +1157,7 @@ static int nvme_user_admin_cmd(struct nvme_dev *dev,
 	struct nvme_admin_cmd cmd;
 	struct nvme_command c;
 	int status, length;
-	struct nvme_iod *iod;
+	struct nvme_iod *uninitialized_var(iod);
 
 	if (!capable(CAP_SYS_ADMIN))
 		return -EACCES;
-- 
1.7.0.4




More information about the Linux-nvme mailing list