• Arnd Bergmann's avatar
    ASoC: intel: initialize return value properly · cc20c4df
    Arnd Bergmann authored
    When CONFIG_SND_SOC_HDAC_HDMI is disabled, we can run into an
    uninitialized variable:
    
    sound/soc/intel/skylake/skl.c: In function 'skl_resume':
    sound/soc/intel/skylake/skl.c:326:6: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    
    I have run into this on today's linux-next kernel, but it appears
    that this is an older problem that was just hard to trigger
    with randconfig builds as CONFIG_SND_SOC_HDAC_HDMI would in
    effect be impossible to disable when having SND_SOC_INTEL_SKYLAKE
    enabled.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    cc20c4df
skl.c 24 KB