Commit:     5050b0921a0f838314b1b9c4d7c16d5c8ed8c1fc
Parent:     6b587ef9a15fa2e1859faf5a8937702ef6c12616
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 14 12:13:12 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:34 2008 +0100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
 sound/core/control_compat.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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)))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to