openwrt/target/linux/lantiq
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
..
ase lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
base-files lantiq: xrx200: switch the subtarget to the mainline DSA driver 2021-06-26 16:05:36 +02:00
falcon lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
files lantiq: xrx200: convert FritzBox 7360v2's wifi to nvmem 2023-03-26 16:39:37 +02:00
image lantiq: lzma-loader: fix mismatched function declaration 2023-05-12 03:15:36 +02:00
patches-5.10 lantiq: nand: don't yield while holding spinlock 2023-04-02 17:08:45 +02:00
patches-5.15 lantiq: fix compilation warning in lantiq_etop_init 2023-05-12 03:15:36 +02:00
xrx200 lantiq: xrx200: mark subtarget as source-only 2023-05-04 05:55:02 +02:00
xway lantiq: xway: kernel: enable SMP support 2022-11-18 20:27:52 +01:00
xway_legacy lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
config-5.10 kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
config-5.15 lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
Makefile lantiq: switch to Kernel 5.15 by default 2023-05-04 07:00:37 +02:00
modules.mk target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00