]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: max9867: fix type of variable containing error codes
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 23 Feb 2016 06:45:14 +0000 (07:45 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 Feb 2016 04:07:02 +0000 (13:07 +0900)
commit127a9cbb5860a7cf15f4d4703ab0454e4603e8ac
treee8670d453327f73f82221d119f017acc97f199c5
parent250a99e70bf8628397901e10ad99a281dfc489d5
ASoC: max9867: fix type of variable containing error codes

value variable can contain error values and is compared with zero.
Its type must be signed.

The problem has been detected using coccinelle script
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max9867.c