Commit 6865c1e7 authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

lan78xx: Correctly indicate invalid OTP



lan78xx_read_otp tries to return -EINVAL in the event of invalid OTP
content, but the value gets overwritten before it is returned and the
read goes ahead anyway. Make the read conditional as it should be
and preserve the error code.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent 20561474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment