summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-12-01 15:39:13 +0100
committerTakashi Iwai <tiwai@suse.de>2008-12-01 15:39:13 +0100
commit9171e5e6a20a9cd4992ff9c7cbee13c6fdf7b0b1 (patch)
tree586f7a57140ac7b34c2f8f2c15ad255c36f66ba0 /sound/soc/codecs
parent54f01916297bafc18bd7df4e2300a0544a84fce3 (diff)
downloadop-kernel-dev-9171e5e6a20a9cd4992ff9c7cbee13c6fdf7b0b1.zip
op-kernel-dev-9171e5e6a20a9cd4992ff9c7cbee13c6fdf7b0b1.tar.gz
ALSA: soc - Fix compile warnings in wm8903.c
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>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm8903.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index efbe892..78070b2 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -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) {
OpenPOWER on IntegriCloud