Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rt1320: fix the range of patch code address

>> sound/soc/codecs/rt1320-sdw.c:564:14:
warning: result of comparison of constant 4295491583 with expression of type 'unsigned int' is always false
[-Wtautological-constant-out-of-range-compare]
564 | if (addr > 0x10007ffff || addr < 0x10007000) {
| ~~~~ ^ ~~~~~~~~~~~
1 warning generated.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410011159.InLKFd40-lkp@intel.com/
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20241001071836.3719162-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shuming Fan and committed by
Mark Brown
a34b9d81 4649cbd9

+1 -1
+1 -1
sound/soc/codecs/rt1320-sdw.c
··· 561 561 val = (ptr[i + 4] & 0xff) | (ptr[i + 5] & 0xff) << 8 | 562 562 (ptr[i + 6] & 0xff) << 16 | (ptr[i + 7] & 0xff) << 24; 563 563 564 - if (addr > 0x10007ffff || addr < 0x10007000) { 564 + if (addr > 0x10007fff || addr < 0x10007000) { 565 565 dev_err(&slave->dev, "%s: the address 0x%x is wrong", __func__, addr); 566 566 goto _exit_; 567 567 }