Skip to content

Commit

Permalink
NVMe: Fix uninitialized iod compiler warning
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Keith Busch authored and Matthew Wilcox committed Jul 27, 2012
1 parent a0cadb8 commit c7d36ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,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;
Expand Down

0 comments on commit c7d36ab

Please sign in to comment.