diff options
author | Corey Minyard <minyard@acm.org> | 2005-09-07 00:18:45 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-08 01:57:49 +0200 |
commit | e8b336173b86c5db5dd5ae5ad33f3f8605878d0d (patch) | |
tree | 8f48cd879728ab6e625574e21be0d46eab5c632a /drivers/char/ipmi/ipmi_watchdog.c | |
parent | [PATCH] ipmi: add hacks for IPMI chassis poweroff for certain Dell servers (diff) | |
download | linux-e8b336173b86c5db5dd5ae5ad33f3f8605878d0d.tar.xz linux-e8b336173b86c5db5dd5ae5ad33f3f8605878d0d.zip |
[PATCH] ipmi: style cleanups
Clean up various style issues in the IPMI driver. Should be no functional
changes.
Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_watchdog.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_watchdog.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index 77ece1f218cd..e71aaae855ad 100644 --- a/drivers/char/ipmi/ipmi_watchdog.c +++ b/drivers/char/ipmi/ipmi_watchdog.c @@ -657,19 +657,18 @@ static ssize_t ipmi_read(struct file *file, static int ipmi_open(struct inode *ino, struct file *filep) { - switch (iminor(ino)) - { - case WATCHDOG_MINOR: - if(test_and_set_bit(0, &ipmi_wdog_open)) + switch (iminor(ino)) { + case WATCHDOG_MINOR: + if (test_and_set_bit(0, &ipmi_wdog_open)) return -EBUSY; - /* Don't start the timer now, let it start on the - first heartbeat. */ - ipmi_start_timer_on_heartbeat = 1; - return nonseekable_open(ino, filep); + /* Don't start the timer now, let it start on the + first heartbeat. */ + ipmi_start_timer_on_heartbeat = 1; + return nonseekable_open(ino, filep); - default: - return (-ENODEV); + default: + return (-ENODEV); } } |