From: Heiko Carstens Date: Thu, 6 Sep 2012 15:35:00 +0000 (+0200) Subject: s390/vmlogrdr: change return value from -ENOSYS to -EOPNOTSUPP X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=745e967a49b26725cc9f30105ff67c8fee8926d6;p=linux-beck.git s390/vmlogrdr: change return value from -ENOSYS to -EOPNOTSUPP Changing the return value of vmlogrdr_open() to -EOPNOTSUPP if O_NONBLOCK is specified shouldn't have any negative side effects. Any existing user wouldn't specify that flag since it wouldn't work anyway. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index c131bc40f962..9b3a24e8d3a0 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c @@ -321,7 +321,7 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp) * only allow for blocking reads to be open */ if (filp->f_flags & O_NONBLOCK) - return -ENOSYS; + return -EOPNOTSUPP; /* Besure this device hasn't already been opened */ spin_lock_bh(&logptr->priv_lock);