ASoC: wm8741: check for error returns from wm8741_set_pdata()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 May 2015 07:40:35 +0000 (10:40 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 20 May 2015 09:55:10 +0000 (10:55 +0100)
commit2d52d172398249f523b24cff9b84aee4e7b8e1b6
treeb3520141a58adb3a2a4aba6738b15f9fbd186330
parentc354b54cfdf63587154da4fa0731c1fbda44c589
ASoC: wm8741: check for error returns from wm8741_set_pdata()

Static checkers complain that "ret" is always zero so the conditions are
never true.

The intention here was clearly to check for errors from
wm8741_set_pdata().  Although, since wm8741_set_pdata() never returns
errors, it doesn't affect runtime.

Fixes: c354b54cfdf6 ('ASoC: wm8741: Add differential mono mode support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8741.c