ASoC: core: Fix to check return value of snd_soc_update_bits_locked()
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 26 Mar 2013 05:41:05 +0000 (14:41 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 14:10:02 +0000 (14:10 +0000)
commit0eaa6cca1f75e12e4f5ec62cbe887330fe3b5fe9
tree0ae1125a2bda793e13abf8ec55dc36a1eb145daf
parentf7ba716f1e704a00d682a8697108f9c86497c551
ASoC: core: Fix to check return value of snd_soc_update_bits_locked()

It can be 0 or 1 return value of snd_soc_update_bits_locked() when it is
success. So just check return value is negative.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/soc-core.c