]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: rsnd: check return value of init function
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 20 Feb 2017 21:05:07 +0000 (22:05 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 21 Feb 2017 17:51:23 +0000 (09:51 -0800)
commit56d2c61d611a50e58dba521be1325dc90f9cc933
tree56b8b9dda49ac2d4e8a083d9932b47b62fc15b1d
parent34157f7bec8276b4296cf2ec172fc13385ac8af7
ASoC: rsnd: check return value of init function

Currently, this function cannot fail for the ADG case. Still, let's
apply defensive programming techniques to make sure we fail gracefully
whenever rsnd_mod_init() gets extended with another failure case.
Reported by Coverity (CID 1397893).

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c