Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69a2ce72 authored by Andrew Morton's avatar Andrew Morton Committed by Alasdair G Kergon
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent e48b9db2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ static int __table_get_device(struct dm_table *t, struct dm_target *ti,
			      int mode, struct dm_dev **result)
{
	int r;
	dev_t dev;
	dev_t uninitialized_var(dev);
	struct dm_dev *dd;
	unsigned int major, minor;