diff options
author | Keith Busch <keith.busch@intel.com> | 2012-07-27 11:53:28 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 11:46:36 -0800 |
commit | 4f442c50be050521667a8974fcc80cc8b881b2a6 (patch) | |
tree | d7b16b60915fa56d4890178077310bd97dcb3be6 /drivers/block | |
parent | 32e11d55e7997fe45c452b71014ee934054a1245 (diff) |
NVMe: Fix uninitialized iod compiler warning
commit c7d36ab8fa04c213328119a9c0d66985fe204ee5 upstream.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | 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 38a2d063188..9782340b669 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c @@ -1153,7 +1153,7 @@ static int nvme_user_admin_cmd(struct nvme_ns *ns, 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; |