aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/gianfar_sysfs.c')
-rw-r--r--drivers/net/gianfar_sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/gianfar_sysfs.c b/drivers/net/gianfar_sysfs.c
index b31c9c8876e6..b98c6c512299 100644
--- a/drivers/net/gianfar_sysfs.c
+++ b/drivers/net/gianfar_sysfs.c
@@ -62,8 +62,8 @@ static ssize_t gfar_set_bd_stash(struct device *dev,
62 /* Find out the new setting */ 62 /* Find out the new setting */
63 if (!strncmp("on", buf, count - 1) || !strncmp("1", buf, count - 1)) 63 if (!strncmp("on", buf, count - 1) || !strncmp("1", buf, count - 1))
64 new_setting = 1; 64 new_setting = 1;
65 else if (!strncmp("off", buf, count - 1) 65 else if (!strncmp("off", buf, count - 1) ||
66 || !strncmp("0", buf, count - 1)) 66 !strncmp("0", buf, count - 1))
67 new_setting = 0; 67 new_setting = 0;
68 else 68 else
69 return count; 69 return count;