Skip to content

Commit

Permalink
ALSA: hda - Fix a complile warning in patch_via.c
Browse files Browse the repository at this point in the history
  sound/pci/hda/patch_via.c:2087: warning: 'dac' may be used uninitialized in this function

Signed-off-by: Wang Shaoyan <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Wang Shaoyan authored and tiwai committed Aug 5, 2011
1 parent 3d56c8e commit 81c0a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@ static int via_auto_create_speaker_ctls(struct hda_codec *codec)
struct via_spec *spec = codec->spec;
struct nid_path *path;
bool check_dac;
hda_nid_t pin, dac;
hda_nid_t pin, dac = 0;
int err;

pin = spec->autocfg.speaker_pins[0];
Expand Down

0 comments on commit 81c0a78

Please sign in to comment.