u-boot/drivers/usb/eth
Tom Rini 5f024d10bb usb: eth: lan78xx: Fix logic in lan78xx_read_otp() to avoid a warning
In lan78xx_read_otp() we want to know if sig is LAN78XX_OTP_INDICATOR_1
or LAN78XX_OTP_INDICATOR_2.  In the case of matching the first one we
set offset to itself, and clang warns about this.  Rework the logic so
that if sig is the second indicator we adjust the offset as today and if
it does not match the first indicator we return -EINVAL

Cc: Marek Vasut <marex@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2023-06-20 13:02:59 -04:00
..
asix.c usb: eth: asix: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00
asix88179.c usb: eth: asix88179: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00
Kconfig lan7xxx: Require phylib 2018-03-22 15:05:31 -05:00
lan7x.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
lan7x.h cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
lan75xx.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
lan78xx.c usb: eth: lan78xx: Fix logic in lan78xx_read_otp() to avoid a warning 2023-06-20 13:02:59 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mcs7830.c usb: eth: msc7830: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00
r8152.c usb: eth: r8152: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00
r8152.h usb: eth: r8152: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00
r8152_fw.c eth/r8152: support RTL8153B/RTL8154B 2020-09-01 14:47:36 +02:00
smsc95xx.c usb: eth: smsc95xx: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00
usb_ether.c usb: eth: Remove non-DM_ETH code 2022-12-07 16:04:17 -05:00