From: Andrew Morton Date: Fri, 8 Feb 2008 02:10:14 +0000 (+0000) Subject: dm: table use uninitialized_var X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69a2ce72a4efe0653479a5d69fc86b5726e83219;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 444a4fb6432..f1606298238 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, int mode, struct dm_dev **result) { int r; - dev_t dev; + dev_t uninitialized_var(dev); struct dm_dev *dd; unsigned int major, minor;