aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/mv64x60_wdt.c
diff options
context:
space:
mode:
authorDale Farnsworth <dale@farnsworth.org>2007-07-24 11:13:26 -0700
committerWim Van Sebroeck <wim@iguana.be>2007-07-24 21:16:05 +0000
commit861e5137708be1a7988f024a09d81c2f6accfb75 (patch)
tree46e04422a371becdf765a72d3293ae16f14bc23c /drivers/char/watchdog/mv64x60_wdt.c
parent7e07a15913e2e1fd99fb77c4c848437bd99a8d5f (diff)
downloadkernel_samsung_aries-861e5137708be1a7988f024a09d81c2f6accfb75.zip
kernel_samsung_aries-861e5137708be1a7988f024a09d81c2f6accfb75.tar.gz
kernel_samsung_aries-861e5137708be1a7988f024a09d81c2f6accfb75.tar.bz2
[WATCHDOG] mv64x60_wdt: Check return value of nonseekable_open
Return the value of the nonseekable_open function and not 0. Signed-off-by: Dale Farnsworth <dale@farnsworth.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/char/watchdog/mv64x60_wdt.c')
-rw-r--r--drivers/char/watchdog/mv64x60_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/watchdog/mv64x60_wdt.c b/drivers/char/watchdog/mv64x60_wdt.c
index 064e180..f1516b4 100644
--- a/drivers/char/watchdog/mv64x60_wdt.c
+++ b/drivers/char/watchdog/mv64x60_wdt.c
@@ -90,9 +90,7 @@ static int mv64x60_wdt_open(struct inode *inode, struct file *file)
mv64x60_wdt_service();
mv64x60_wdt_handler_enable();
- nonseekable_open(inode, file);
-
- return 0;
+ return nonseekable_open(inode, file);
}
static int mv64x60_wdt_release(struct inode *inode, struct file *file)