wifi: mt76: mt7915: drop always true condition of __mt7915_reg_addr()

[ Upstream commit b0f7b95633 ]

smatch warnings:
addr <= MT_CBTOP2_PHY_END(0xffffffff) is always true (<= u32max),
so drop it.

Fixes: cd4c314a65 ("mt76: mt7915: refine register definition")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Ryder Lee 2022-12-04 15:18:14 +08:00 • committed by Greg Kroah-Hartman
commit c31759baec
2 changed files with 1 additions and 2 deletions