ASoC: wm_hubs: Silence reg_r and reg_l 'may be used uninitialized' warnings
[pandora-kernel.git] / sound / soc / codecs / wm_hubs.c
index 3642e06..3b26d44 100644 (file)
@@ -173,7 +173,7 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
                break;
        default:
                WARN(1, "Unknown DCS readback method\n");
-               break;
+               return;
        }
 
        dev_dbg(codec->dev, "DCS input: %x %x\n", reg_l, reg_r);
@@ -414,6 +414,7 @@ static int hp_supply_event(struct snd_soc_dapm_widget *w,
                                hubs->hp_startup_mode);
                        break;
                }
+               break;
 
        case SND_SOC_DAPM_PRE_PMD:
                snd_soc_update_bits(codec, WM8993_CHARGE_PUMP_1,