1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux
Aleksander Jan Bajkowski 0e2a332252
lantiq: fix compilation warning in lantiq_etop_init
Commit c5cc3d9610 ("lantiq: Change the data-type of mac address in ETOP driver")
changed the type of the mac variable. Since then, the priv->mac check always evaluates
as true, so this check can be removed.

This fix compilation warning:
drivers/net/ethernet/lantiq_etop.c: In function 'ltq_etop_init':
drivers/net/ethernet/lantiq_etop.c:775:13: warning: the comparison will always evaluate as 'true' for the address of 'mac' will never be NULL [-Waddress]
  775 |         if (priv->mac && !is_valid_ether_addr(mac.sa_data))
      |             ^~~~
drivers/net/ethernet/lantiq_etop.c:157:23: note: 'mac' declared here
  157 |         unsigned char mac[6];
      |
cc1: all warnings being treated as errors

Fixes: c5cc3d9610 ("lantiq: Change the data-type of mac address in ETOP driver")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
[ fix wrong fixes tag format ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 03:15:36 +02:00
..
airoha generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
apm821xx kernel: bump 5.10 to 5.10.178 2023-04-22 01:15:03 +02:00
archs38 kernel: Activate CONFIG_HARDENED_USERCOPY for all targets 2023-04-29 21:56:53 +02:00
armvirt generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
at91 generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
ath25 treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
ath79 ath79: 5.15: drop unused res variable from pci ar724x OF convert patch 2023-05-12 03:15:34 +02:00
bcm27xx generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
bcm47xx kernel: bump 5.10 to 5.10.179 2023-04-30 00:01:12 +02:00
bcm53xx generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
bcm63xx bcm63xx: kernel: power cycle the bcm6358 USB PLL 2023-03-04 20:09:49 +01:00
bcm4908 bcm4908: 5.15: fix compilation error for BCM4908 pinmux patch 2023-05-12 03:15:34 +02:00
bmips bmips: fix external interrupt controller 2023-04-27 15:39:09 +02:00
gemini generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
generic kernel: psb6970: drop unused variable in psb6970_config_init 2023-05-12 03:15:36 +02:00
imx kernel: improve handling of CONFIG_IO_URING 2023-05-03 10:26:17 -07:00
ipq40xx ipq40xx: add PSGMII PHY mode to phylink_get_linkmodes() 2023-05-12 03:15:34 +02:00
ipq806x ipq806x: 5.15: fix compilation warning from mangle bootargs patch 2023-05-12 03:15:33 +02:00
ipq807x kernel: bump 5.15 to 5.15.109 2023-04-30 00:02:47 +02:00
kirkwood generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
lantiq lantiq: fix compilation warning in lantiq_etop_init 2023-05-12 03:15:36 +02:00
layerscape generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
malta treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
mediatek mediatek: apply stock configuration for WAN-LED 2023-05-11 23:09:04 +02:00
mpc85xx kernel: Deactivate CONFIG_LEGACY_PTYS 2023-04-29 21:56:53 +02:00
mvebu kernel: bump 5.15 to 5.15.108 2023-04-22 01:10:24 +02:00
mxs generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
octeon octeon: switch to Kernel 5.15 by default 2023-04-08 00:47:12 +02:00
octeontx kernel: bump 5.15 to 5.15.100 2023-03-18 12:52:17 +01:00
omap omap: mark source only 2023-05-03 14:49:44 +02:00
oxnas generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
pistachio kernel: bump 5.10 to 5.10.173 2023-03-20 22:44:28 +01:00
qoriq kernel: fix handling of CONFIG_DYNAMIC_DEBUG 2023-05-03 10:26:17 -07:00
ramips ramips: 5.15: handle error from device_reset in SPI ralink driver 2023-05-12 03:15:33 +02:00
realtek realtek: remove redundant is_lagmember checks 2023-05-07 19:16:07 +02:00
rockchip rockchip: disable UHS speed for ROC-RK3328-CC 2023-05-09 13:30:22 +08:00
sunxi kernel: fix handling of CONFIG_DYNAMIC_DEBUG 2023-05-03 10:26:17 -07:00
tegra tegra: switch to Kernel 5.15 by default 2023-04-08 00:30:22 +02:00
uml treewide: replace wpad-basic-wolfssl default 2023-02-04 02:35:03 +01:00
x86 kernel: improve handling of CONFIG_IO_URING 2023-05-03 10:26:17 -07:00
zynq generic: enable CONFIG_ARM_CRYPTO for 32bit arm targets 2023-05-10 19:01:45 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00