]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: rt5677: Refactor code to avoid comparison unsigned >= 0
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 18 Jul 2017 17:34:18 +0000 (20:34 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jul 2017 11:23:47 +0000 (12:23 +0100)
commitd4e753d3aa2c278cb1f7b4a61987c4037316e0fd
tree763f7febd8687ff8cb768442e09430020838694e
parentddc9e69b9dc23d4c0d8ed829575327746ea77a04
ASoC: rt5677: Refactor code to avoid comparison unsigned >= 0

rt5677_to_irq() has couple of redundant conditionals, one of which
compares unsigned variable to be great than or equal to zero which
is always true as compiler notices:

sound/soc/codecs/rt5677.c: In function ‘rt5677_to_irq’:
sound/soc/codecs/rt5677.c:4626:13: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Refactor the code by removing redundant conditionals.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c