From: Andrew Morton Date: Fri, 8 Feb 2008 02:10:16 +0000 (+0000) Subject: dm ioctl: use uninitialized_var X-Git-Tag: upstream/snapshot3+hdmi~27461^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a26ffd4aa99d6ace82852930edf09e450cc7dc8d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dm ioctl: use uninitialized_var drivers/md/dm-ioctl.c:1405: warning: 'param' may be used uninitialized in this function Signed-off-by: Andrew Morton Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 9c49139..b262c00 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1402,7 +1402,7 @@ static int ctl_ioctl(uint command, struct dm_ioctl __user *user) { int r = 0; unsigned int cmd; - struct dm_ioctl *param; + struct dm_ioctl *uninitialized_var(param); ioctl_fn fn = NULL; size_t param_size;