diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-09-06 17:35:00 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-09-26 15:45:16 +0200 |
commit | 745e967a49b26725cc9f30105ff67c8fee8926d6 (patch) | |
tree | 999dfea410ee7a6f8cfea16a7b0b5d7866462524 /drivers/s390 | |
parent | a11b2ef7bb69136dfac2d6367574151223ee7712 (diff) | |
download | linux-exynos-745e967a49b26725cc9f30105ff67c8fee8926d6.tar.gz linux-exynos-745e967a49b26725cc9f30105ff67c8fee8926d6.tar.bz2 linux-exynos-745e967a49b26725cc9f30105ff67c8fee8926d6.zip |
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 <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/vmlogrdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |