diff options
author | Dale Farnsworth <dale@farnsworth.org> | 2007-07-24 20:13:26 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2007-07-24 23:16:05 +0200 |
commit | 861e5137708be1a7988f024a09d81c2f6accfb75 (patch) | |
tree | 46e04422a371becdf765a72d3293ae16f14bc23c /drivers/char/watchdog | |
parent | [WATCHDOG] mv64x60_wdt: Add arch/powerpc platform support (diff) | |
download | linux-861e5137708be1a7988f024a09d81c2f6accfb75.tar.xz linux-861e5137708be1a7988f024a09d81c2f6accfb75.zip |
[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')
-rw-r--r-- | drivers/char/watchdog/mv64x60_wdt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/watchdog/mv64x60_wdt.c b/drivers/char/watchdog/mv64x60_wdt.c index 064e18034395..f1516b4b22a1 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) |