mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
wifi: mt76: mt7915: drop always true condition of __mt7915_reg_addr()
[ Upstream commitb0f7b95633] 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:
committed by
Greg Kroah-Hartman
parent
8dd61e810f
commit
c31759baec
@@ -436,7 +436,7 @@ static u32 __mt7915_reg_addr(struct mt7915_dev *dev, u32 addr)
|
||||
|
||||
if (dev_is_pci(dev->mt76.dev) &&
|
||||
((addr >= MT_CBTOP1_PHY_START && addr <= MT_CBTOP1_PHY_END) ||
|
||||
(addr >= MT_CBTOP2_PHY_START && addr <= MT_CBTOP2_PHY_END)))
|
||||
addr >= MT_CBTOP2_PHY_START))
|
||||
return mt7915_reg_map_l1(dev, addr);
|
||||
|
||||
/* CONN_INFRA: covert to phyiscal addr and use layer 1 remap */
|
||||
|
||||
@@ -740,7 +740,6 @@ enum offs_rev {
|
||||
#define MT_CBTOP1_PHY_START 0x70000000
|
||||
#define MT_CBTOP1_PHY_END __REG(CBTOP1_PHY_END)
|
||||
#define MT_CBTOP2_PHY_START 0xf0000000
|
||||
#define MT_CBTOP2_PHY_END 0xffffffff
|
||||
#define MT_INFRA_MCU_START 0x7c000000
|
||||
#define MT_INFRA_MCU_END __REG(INFRA_MCU_ADDR_END)
|
||||
#define MT_CONN_INFRA_OFFSET(p) ((p) - MT_INFRA_BASE)
|
||||
|
||||
Reference in New Issue
Block a user