Skip to content

Commit

Permalink
ALSA: snd-usb: Fix uninitialized variable usage
Browse files Browse the repository at this point in the history
Purely cosmetic, but fixes the following build warning.

  CC [M]  sound/usb/quirks.o
sound/usb/quirks.c: In function ‘snd_usb_apply_boot_quirk’:
sound/usb/quirks.c:429:6: warning: ‘err’ may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Daniel Mack <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
zonque authored and tiwai committed Aug 6, 2011
1 parent 81c0a78 commit dac8f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int snd_usb_cm106_boot_quirk(struct usb_device *dev)
*/
static int snd_usb_cm6206_boot_quirk(struct usb_device *dev)
{
int err, reg;
int err = 0, reg;
int val[] = {0x2004, 0x3000, 0xf800, 0x143f, 0x0000, 0x3000};

for (reg = 0; reg < ARRAY_SIZE(val); reg++) {
Expand Down

0 comments on commit dac8f84

Please sign in to comment.