From: Dale Farnsworth Date: Tue, 24 Jul 2007 18:13:26 +0000 (-0700) Subject: [WATCHDOG] mv64x60_wdt: Check return value of nonseekable_open X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=861e5137708be1a7988f024a09d81c2f6accfb75;p=deliverable%2Flinux.git [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 Signed-off-by: Wim Van Sebroeck --- 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)