]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: max98090: remove superflous check for 'micbias'
authorVinod Koul <vinod.koul@intel.com>
Thu, 8 Dec 2016 17:31:29 +0000 (23:01 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 15 Dec 2016 11:20:48 +0000 (11:20 +0000)
commit4a3e4ed4585b9d21b1239b7a3b7b640c73e9a7cf
tree9bfc5d0b3e32ebfd9bba0e81f71af77e8b7cf66a
parent8cd2b40dad6f118d7287346f538ebda48662ad53
ASoC: max98090: remove superflous check for 'micbias'

In max98090_probe(), code checks for micbias being out of range. The
'micbias' variable in unsigned and checked against M98090_MBVSEL_2V2 which
is zero, so remove this check.

sound/soc/codecs/max98090.c: In function ‘max98090_probe’:
sound/soc/codecs/max98090.c:2459:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
  } else if (micbias < M98090_MBVSEL_2V2 || micbias > M98090_MBVSEL_2V8) {

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98090.c