[alsa-devel] [PATCH] ASoC: imx-audmux: remove null check of audmux_base in audmux_read_file
broonie at opensource.wolfsonmicro.com
Wed Sep 19 04:53:47 CEST 2012
On Tue, Sep 18, 2012 at 04:38:30PM +0800, Richard Zhao wrote:
> When audmux_read_file is called, it means the driver is already
> initialised successfully, so we don't need to check audmux_base.
> It also fix smatch warning:
> sound/soc/fsl/imx-audmux.c:78 audmux_read_file() warn: possible memory leak of 'buf'
Applied, though it doesn't seem like the best fix to remove an error
check even if it should be redundant.
More information about the Alsa-devel