Skip to content

Commit

Permalink
ALSA: soc - Fix compile warnings in wm8903.c
Browse files Browse the repository at this point in the history
Hide annoying uninitialized warnings:
  sound/soc/codecs/wm8903.c:382: warning: ‘reg’ may be used uninitialized in this function
  sound/soc/codecs/wm8903.c:383: warning: ‘shift’ may be used uninitialized in this function

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Dec 1, 2008
1 parent 54f0191 commit 9171e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ static int wm8903_output_event(struct snd_soc_dapm_widget *w,
struct wm8903_priv *wm8903 = codec->private_data;
struct i2c_client *i2c = codec->control_data;
u16 val;
u16 reg;
int shift;
u16 uninitialized_var(reg);
int uninitialized_var(shift);
u16 cp_reg = wm8903_read(codec, WM8903_CHARGE_PUMP_0);

switch (w->reg) {
Expand Down

0 comments on commit 9171e5e

Please sign in to comment.