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: v3.12-rc1~24018^2~196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5050b0921a0f838314b1b9c4d7c16d5c8ed8c1fc;p=kernel%2Fkernel-generic.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 9311ca3..6101259 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)))