s390: z/VM watchdog driver bugfix.
PATCH 2/2 s390: z/VM watchdog driver bugfix.
[patch 2/2] s390: z/VM watchdog driver bugfix.
From: Gerald Schaefer <[email protected]>
- Remove ESPIPE logic, use nonseekable_open() instead.
Signed-off-by Heiko Carstens <[email protected]>
diffstat:
drivers/s390/char/vmwatchdog.c | 6 +----- 1 files changed, 1 insertion(+), 5 deletions(-)
drivers/s390/char/vmwatchdog.c +1 -5
@@ -168,7 +168,7 @@ ret =vmwdt_keepalive ();if (ret)clear_bit (0 , &vmwdt_is_open); -return ret; +return ret ? ret :nonseekable_open (i, f); }static int vmwdt_close (struct inode *i,struct file *f)
@@ -238,10 +238,6 @@static ssize_t vmwdt_write (struct file *f,const char __user *buf,size_t count,loff_t *ppos) { -/* We can't seek */ -if (ppos != &f->f_pos) -return -ESPIPE ; -if (count) {if (!vmwdt_nowayout) {size_t i;