]> err.no Git - linux-2.6/commitdiff
[ALSA] sound: emuproc.c fix signedness warning
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 29 Feb 2008 10:44:26 +0000 (11:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:18 +0000 (12:00 +0200)
Reading regs from the fpga into an int instead of a u32, trivial
fix.
sound/pci/emu10k1/emuproc.c:422:34: warning: incorrect type in argument 3 (different signedness)
sound/pci/emu10k1/emuproc.c:422:34:    expected unsigned int [usertype] *value
sound/pci/emu10k1/emuproc.c:422:34:    got int *<noident>

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emuproc.c

index f3caa3f890c6cdd5fc3b237afa4c5c75269af1d5..216f9748aff5b00e70ee943a1e4c55e368b76d6d 100644 (file)
@@ -412,7 +412,7 @@ static void snd_emu_proc_emu1010_reg_read(struct snd_info_entry *entry,
                                     struct snd_info_buffer *buffer)
 {
        struct snd_emu10k1 *emu = entry->private_data;
-       int value;
+       u32 value;
        unsigned long flags;
        int i;
        snd_iprintf(buffer, "EMU1010 Registers:\n\n");