From 5050b0921a0f838314b1b9c4d7c16d5c8ed8c1fc Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 14 Dec 2007 12:13:12 +0100 Subject: [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 --- sound/core/control_compat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sound') diff --git a/sound/core/control_compat.c b/sound/core/control_compat.c index 9311ca397bbc..6101259ad860 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))) -- cgit v1.2.1