diff options
Diffstat (limited to 'board/starfive/evb/starfive_evb.c')
-rw-r--r-- | board/starfive/evb/starfive_evb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/starfive/evb/starfive_evb.c b/board/starfive/evb/starfive_evb.c index 1dd722ef40..8a30a24de0 100644 --- a/board/starfive/evb/starfive_evb.c +++ b/board/starfive/evb/starfive_evb.c @@ -244,7 +244,7 @@ int misc_init_r(void) } ret = misc_read(dev, MACADDR_OFFSET, buf, sizeof(buf)); - if (ret) + if (ret != sizeof(buf)) printf("%s: error reading mac from OTP\n", __func__); else if (buf[0] != 0xff) { |