summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/layouts/u-boot-env.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvmem/layouts/u-boot-env.c')
-rw-r--r--drivers/nvmem/layouts/u-boot-env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvmem/layouts/u-boot-env.c b/drivers/nvmem/layouts/u-boot-env.c
index 731e6f4f12b2..436426d4e8f9 100644
--- a/drivers/nvmem/layouts/u-boot-env.c
+++ b/drivers/nvmem/layouts/u-boot-env.c
@@ -37,7 +37,7 @@ static int u_boot_env_read_post_process_ethaddr(void *context, const char *id, i
{
u8 mac[ETH_ALEN];
- if (bytes != 3 * ETH_ALEN - 1)
+ if (bytes != MAC_ADDR_STR_LEN)
return -EINVAL;
if (!mac_pton(buf, mac))