2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/ethernet/airoha
Lorenzo Bianconi e368d2a1e8 net: airoha: Fix dev->dsa_ptr check in airoha_get_dsa_tag()
Fix the following warning reported by Smatch static checker in
airoha_get_dsa_tag routine:

drivers/net/ethernet/airoha/airoha_eth.c:1722 airoha_get_dsa_tag()
warn: 'dp' isn't an ERR_PTR

dev->dsa_ptr can't be set to an error pointer, it can just be NULL.
Remove this check since it is already performed in netdev_uses_dsa().

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/netdev/Z8l3E0lGOcrel07C@lore-desk/T/#m54adc113fcdd8c5e6c5f65ffd60d8e8b1d483d90
Fixes: af3cf757d5 ("net: airoha: Move DSA tag in DMA descriptor")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250306-airoha-flowtable-fixes-v1-1-68d3c1296cdd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-03-07 19:40:23 -08:00
..
airoha_eth.c net: airoha: Fix dev->dsa_ptr check in airoha_get_dsa_tag() 2025-03-07 19:40:23 -08:00
airoha_eth.h net: airoha: Increase max mtu to 9k 2025-03-06 16:41:14 -08:00
airoha_npu.c net: airoha: Introduce Airoha NPU support 2025-03-04 13:22:09 +01:00
airoha_npu.h net: airoha: Introduce Airoha NPU support 2025-03-04 13:22:09 +01:00
airoha_ppe_debugfs.c net: airoha: Introduce PPE debugfs support 2025-03-04 13:22:10 +01:00
airoha_ppe.c net: airoha: Introduce PPE debugfs support 2025-03-04 13:22:10 +01:00
airoha_regs.h net: airoha: Enable Rx Scatter-Gather 2025-03-06 16:41:13 -08:00
Kconfig net: airoha: Introduce Airoha NPU support 2025-03-04 13:22:09 +01:00
Makefile net: airoha: Introduce PPE debugfs support 2025-03-04 13:22:10 +01:00