Message ID | 20241001071836.3719162-1-shumingf@realtek.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a34b9d812d7ec95789b15ce84de5f03c6dd1137b |
Headers | show |
Series | ASoC: rt1320: fix the range of patch code address | expand |
On Tue, 01 Oct 2024 15:18:36 +0800, shumingf@realtek.com wrote: > >> 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. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: rt1320: fix the range of patch code address commit: a34b9d812d7ec95789b15ce84de5f03c6dd1137b All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/rt1320-sdw.c b/sound/soc/codecs/rt1320-sdw.c index 2404de8ae03d..ebd6f09bd990 100644 --- a/sound/soc/codecs/rt1320-sdw.c +++ b/sound/soc/codecs/rt1320-sdw.c @@ -561,7 +561,7 @@ static void rt1320_load_mcu_patch(struct rt1320_sdw_priv *rt1320) val = (ptr[i + 4] & 0xff) | (ptr[i + 5] & 0xff) << 8 | (ptr[i + 6] & 0xff) << 16 | (ptr[i + 7] & 0xff) << 24; - if (addr > 0x10007ffff || addr < 0x10007000) { + if (addr > 0x10007fff || addr < 0x10007000) { dev_err(&slave->dev, "%s: the address 0x%x is wrong", __func__, addr); goto _exit_; }