From: Andrew Morton Date: Fri, 14 Dec 2007 11:13:12 +0000 (+0100) Subject: [ALSA] copy_ctl_value_from_user() warning fix X-Git-Tag: v2.6.25-rc1~1127^2~196 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5050b0921a0f838314b1b9c4d7c16d5c8ed8c1fc;p=linux-2.6-omap-h63xx.git [ALSA] copy_ctl_value_from_user() warning fix sound/core/control_compat.c: In function 'copy_ctl_value_from_user': sound/core/control_compat.c:222: warning: 'count' may be used uninitialized in this function Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/core/control_compat.c b/sound/core/control_compat.c index 9311ca397bb..6101259ad86 100644 --- a/sound/core/control_compat.c +++ b/sound/core/control_compat.c @@ -219,7 +219,8 @@ static int copy_ctl_value_from_user(struct snd_card *card, struct snd_ctl_elem_value32 __user *data32, int *typep, int *countp) { - int i, type, count, size; + int i, type, size; + int uninitialized_var(count); unsigned int indirect; if (copy_from_user(&data->id, &data32->id, sizeof(data->id)))