diff options
author | Dale Farnsworth <dale@farnsworth.org> | 2007-07-24 11:13:26 -0700 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2007-07-24 21:16:05 +0000 |
commit | 861e5137708be1a7988f024a09d81c2f6accfb75 (patch) | |
tree | 46e04422a371becdf765a72d3293ae16f14bc23c /drivers/char/watchdog/mv64x60_wdt.c | |
parent | 7e07a15913e2e1fd99fb77c4c848437bd99a8d5f (diff) |
[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.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) |