aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-02-07 21:10:14 -0500
committerAlasdair G Kergon <agk@redhat.com>2008-02-07 21:10:14 -0500
commit69a2ce72a4efe0653479a5d69fc86b5726e83219 (patch)
tree2fa4c50f83782356c5202c1a987a83cdea4a4c6a /drivers/md/dm-table.c
parente48b9db251122b88783844b1d2d69c6780f898ff (diff)
dm: table use uninitialized_var
drivers/md/dm-table.c: In function 'dm_get_device': drivers/md/dm-table.c:478: warning: 'dev' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r--drivers/md/dm-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 444a4fb64328..f16062982383 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -475,7 +475,7 @@ static int __table_get_device(struct dm_table *t, struct dm_target *ti,
475 int mode, struct dm_dev **result) 475 int mode, struct dm_dev **result)
476{ 476{
477 int r; 477 int r;
478 dev_t dev; 478 dev_t uninitialized_var(dev);
479 struct dm_dev *dd; 479 struct dm_dev *dd;
480 unsigned int major, minor; 480 unsigned int major, minor;
481 481