aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2012-07-27 13:53:28 -0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2012-07-27 14:25:22 -0400
commitc7d36ab8fa04c213328119a9c0d66985fe204ee5 (patch)
treeda73f1fd44a39b526e8cbee140195d9c63f0deba
parenta0cadb85b8b758608ae0759151e29de7581c6731 (diff)
NVMe: Fix uninitialized iod compiler warning
Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
-rw-r--r--drivers/block/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index af1ef39bd6b4..6c0eb768562f 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -1159,7 +1159,7 @@ static int nvme_user_admin_cmd(struct nvme_dev *dev,
1159 struct nvme_admin_cmd cmd; 1159 struct nvme_admin_cmd cmd;
1160 struct nvme_command c; 1160 struct nvme_command c;
1161 int status, length; 1161 int status, length;
1162 struct nvme_iod *iod; 1162 struct nvme_iod *uninitialized_var(iod);
1163 1163
1164 if (!capable(CAP_SYS_ADMIN)) 1164 if (!capable(CAP_SYS_ADMIN))
1165 return -EACCES; 1165 return -EACCES;