aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/hdmi-codec.c
diff options
context:
space:
mode:
authorGravatar Dan Carpenter <dan.carpenter@oracle.com> 2017-08-24 13:07:41 +0300
committerGravatar Mark Brown <broonie@kernel.org> 2017-08-24 11:28:24 +0100
commit56026714bd45fccda710114982789c5145285560 (patch)
treeaa2584557db01f8422ec2b238ca70a4bd221c7c8 /sound/soc/codecs/hdmi-codec.c
parentASoC: qcom: apq8016-sbc: Add support to Headset JACK (diff)
downloadlinux-56026714bd45fccda710114982789c5145285560.tar.gz
linux-56026714bd45fccda710114982789c5145285560.tar.bz2
linux-56026714bd45fccda710114982789c5145285560.zip
ASoC: codecs: msm8916-wcd-analog: always true condition
Static checkers complain that unsigned int val is always >= 0. The context is that snd_soc_read() returns -1U on error. This is harmless because we're checking that CDC_A_MBHC_RESULT_1_BTN_RESULT_MASK is not set, and it will always be set for -1U. I could have just removed the check against -1 but I preserved it because I thought it helped with readability. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdmi-codec.c')
0 files changed, 0 insertions, 0 deletions