aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/w83627hf_wdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2008-08-06 16:19:41 -0400
committerWim Van Sebroeck <wim@iguana.be>2008-08-06 16:19:41 -0400
commit7944d3a5a70ee5c1904ed1e8b1d71ff0af2854d9 (patch)
treefe6ec1a557a4b27712266d9d86f791c69e8e2596 /drivers/watchdog/w83627hf_wdt.c
parent12b7a1523eda9cd72362fdda928ddb995ecdc06d (diff)
[WATCHDOG] more coding style clean-up's
More coding style clean-up's. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/w83627hf_wdt.c')
-rw-r--r--drivers/watchdog/w83627hf_wdt.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c
index 59507f609996..69396adaa5c3 100644
--- a/drivers/watchdog/w83627hf_wdt.c
+++ b/drivers/watchdog/w83627hf_wdt.c
@@ -180,7 +180,7 @@ static ssize_t wdt_write(struct file *file, const char __user *buf,
180 180
181 for (i = 0; i != count; i++) { 181 for (i = 0; i != count; i++) {
182 char c; 182 char c;
183 if (get_user(c, buf+i)) 183 if (get_user(c, buf + i))
184 return -EFAULT; 184 return -EFAULT;
185 if (c == 'V') 185 if (c == 'V')
186 expect_close = 42; 186 expect_close = 42;
@@ -278,10 +278,9 @@ static int wdt_close(struct inode *inode, struct file *file)
278static int wdt_notify_sys(struct notifier_block *this, unsigned long code, 278static int wdt_notify_sys(struct notifier_block *this, unsigned long code,
279 void *unused) 279 void *unused)
280{ 280{
281 if (code == SYS_DOWN || code == SYS_HALT) { 281 if (code == SYS_DOWN || code == SYS_HALT)
282 /* Turn the WDT off */ 282 wdt_disable(); /* Turn the WDT off */
283 wdt_disable(); 283
284 }
285 return NOTIFY_DONE; 284 return NOTIFY_DONE;
286} 285}
287 286