diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-07-07 21:06:03 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-09 22:56:42 +0200 |
commit | cf3804dbd3c4ff5f8c8478fd64190ed9fea7db55 (patch) | |
tree | cb16edfa4a2a28f2c7318c32e3e7b25cd694b4dd /sound/soc/tegra | |
parent | ASoC: samsung: pcm: fix kernel-doc (diff) | |
download | linux-cf3804dbd3c4ff5f8c8478fd64190ed9fea7db55.tar.xz linux-cf3804dbd3c4ff5f8c8478fd64190ed9fea7db55.zip |
ASoC: tegra: tegra20_das: remove always-true comparison
Fix W=1 warning:
sound/soc//tegra/tegra20_das.c:101:11: warning:
comparison of unsigned expression >= 0 is always true [-Wtype-limits]
101 | if ((reg >= TEGRA20_DAS_DAP_CTRL_SEL) &&
| ^~
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20200707190612.97799-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r-- | sound/soc/tegra/tegra20_das.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.c index 1070b2710d5e..79dba878d854 100644 --- a/sound/soc/tegra/tegra20_das.c +++ b/sound/soc/tegra/tegra20_das.c @@ -98,8 +98,7 @@ EXPORT_SYMBOL_GPL(tegra20_das_connect_dac_to_dap); static bool tegra20_das_wr_rd_reg(struct device *dev, unsigned int reg) { - if ((reg >= TEGRA20_DAS_DAP_CTRL_SEL) && - (reg <= LAST_REG(DAP_CTRL_SEL))) + if (reg <= LAST_REG(DAP_CTRL_SEL)) return true; if ((reg >= TEGRA20_DAS_DAC_INPUT_DATA_CLK_SEL) && (reg <= LAST_REG(DAC_INPUT_DATA_CLK_SEL))) |