aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ksz884x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ksz884x.c')
-rw-r--r--drivers/net/ksz884x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c
index 348769521615..097796423b52 100644
--- a/drivers/net/ksz884x.c
+++ b/drivers/net/ksz884x.c
@@ -6318,7 +6318,7 @@ static int netdev_set_eeprom(struct net_device *dev,
6318 int len; 6318 int len;
6319 6319
6320 if (eeprom->magic != EEPROM_MAGIC) 6320 if (eeprom->magic != EEPROM_MAGIC)
6321 return 1; 6321 return -EINVAL;
6322 6322
6323 len = (eeprom->offset + eeprom->len + 1) / 2; 6323 len = (eeprom->offset + eeprom->len + 1) / 2;
6324 for (i = eeprom->offset / 2; i < len; i++) 6324 for (i = eeprom->offset / 2; i < len; i++)