lkml.org 
[lkml]   [2018]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] ASoC: adau1761: Mark expected switch fall-though
    In preparation to enabling -Wimplicit-fallthrough, mark switch cases
    where we are expecting to fall through.

    Addresses-Coverity-ID: 114879 ("Missing break in switch")
    Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
    ---
    sound/soc/codecs/adau1761.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/sound/soc/codecs/adau1761.c b/sound/soc/codecs/adau1761.c
    index be136e9..bef3e9e 100644
    --- a/sound/soc/codecs/adau1761.c
    +++ b/sound/soc/codecs/adau1761.c
    @@ -518,7 +518,8 @@ static int adau1761_setup_digmic_jackdetect(struct snd_soc_component *component)
    ARRAY_SIZE(adau1761_jack_detect_controls));
    if (ret)
    return ret;
    - case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE: /* fallthrough */
    + /* fall through */
    + case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE:
    ret = snd_soc_dapm_add_routes(dapm, adau1761_no_dmic_routes,
    ARRAY_SIZE(adau1761_no_dmic_routes));
    if (ret)
    --
    2.7.4
    \
     
     \ /
      Last update: 2018-08-08 21:23    [W:2.559 / U:1.736 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site