summaryrefslogtreecommitdiff
path: root/common/stdio.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-06-04 16:35:15 -0400
committerTom Rini <trini@konsulko.com>2023-06-20 13:02:59 -0400
commit5f024d10bbae9e52396191b8dadf0e8ddb059c85 (patch)
tree959ba730618d1b74f2dae176c166feecfa1e344a /common/stdio.c
parent1aeedef93744da76fd1e6f5c3b139409fff57dc5 (diff)
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>
Diffstat (limited to 'common/stdio.c')
0 files changed, 0 insertions, 0 deletions