aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/sbc60xxwdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/sbc60xxwdt.c')
-rw-r--r--drivers/watchdog/sbc60xxwdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/sbc60xxwdt.c b/drivers/watchdog/sbc60xxwdt.c
index e801cd46c647..3266daaaecf8 100644
--- a/drivers/watchdog/sbc60xxwdt.c
+++ b/drivers/watchdog/sbc60xxwdt.c
@@ -183,7 +183,7 @@ static ssize_t fop_write(struct file *file, const char __user *buf,
183 magic character */ 183 magic character */
184 for (ofs = 0; ofs != count; ofs++) { 184 for (ofs = 0; ofs != count; ofs++) {
185 char c; 185 char c;
186 if (get_user(c, buf+ofs)) 186 if (get_user(c, buf + ofs))
187 return -EFAULT; 187 return -EFAULT;
188 if (c == 'V') 188 if (c == 'V')
189 wdt_expect_close = 42; 189 wdt_expect_close = 42;
@@ -238,7 +238,7 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
238 238
239 switch (cmd) { 239 switch (cmd) {
240 case WDIOC_GETSUPPORT: 240 case WDIOC_GETSUPPORT:
241 return copy_to_user(argp, &ident, sizeof(ident))? -EFAULT : 0; 241 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0;
242 case WDIOC_GETSTATUS: 242 case WDIOC_GETSTATUS:
243 case WDIOC_GETBOOTSTATUS: 243 case WDIOC_GETBOOTSTATUS:
244 return put_user(0, p); 244 return put_user(0, p);