Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=861e5137708be1a7988f024a09d81c2f6accfb75
Commit:     861e5137708be1a7988f024a09d81c2f6accfb75
Parent:     7e07a15913e2e1fd99fb77c4c848437bd99a8d5f
Author:     Dale Farnsworth <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 24 11:13:26 2007 -0700
Committer:  Wim Van Sebroeck <[EMAIL PROTECTED]>
CommitDate: Tue Jul 24 21:16:05 2007 +0000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Wim Van Sebroeck <[EMAIL PROTECTED]>
---
 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 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to