diff options
| author | Dale Farnsworth <dale@farnsworth.org> | 2007-07-24 14:13:26 -0400 |
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2007-07-24 17:16:05 -0400 |
| commit | 861e5137708be1a7988f024a09d81c2f6accfb75 (patch) | |
| tree | 46e04422a371becdf765a72d3293ae16f14bc23c | |
| 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>
| -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) | |||
| 90 | mv64x60_wdt_service(); | 90 | mv64x60_wdt_service(); |
| 91 | mv64x60_wdt_handler_enable(); | 91 | mv64x60_wdt_handler_enable(); |
| 92 | 92 | ||
| 93 | nonseekable_open(inode, file); | 93 | return nonseekable_open(inode, file); |
| 94 | |||
| 95 | return 0; | ||
| 96 | } | 94 | } |
| 97 | 95 | ||
| 98 | static int mv64x60_wdt_release(struct inode *inode, struct file *file) | 96 | static int mv64x60_wdt_release(struct inode *inode, struct file *file) |
