aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2012-09-06 11:35:00 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 09:45:16 -0400
commit745e967a49b26725cc9f30105ff67c8fee8926d6 (patch)
tree999dfea410ee7a6f8cfea16a7b0b5d7866462524 /drivers/s390
parenta11b2ef7bb69136dfac2d6367574151223ee7712 (diff)
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.c2
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)
321 * only allow for blocking reads to be open 321 * only allow for blocking reads to be open
322 */ 322 */
323 if (filp->f_flags & O_NONBLOCK) 323 if (filp->f_flags & O_NONBLOCK)
324 return -ENOSYS; 324 return -EOPNOTSUPP;
325 325
326 /* Besure this device hasn't already been opened */ 326 /* Besure this device hasn't already been opened */
327 spin_lock_bh(&logptr->priv_lock); 327 spin_lock_bh(&logptr->priv_lock);