s390/sclp: use -EOPNOTSUPP instead of -ENOSYS
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 6 Sep 2012 13:00:07 +0000 (15:00 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:13 +0000 (15:45 +0200)
The return value was only internally used, so it's ok to change.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp.c
drivers/s390/char/sclp_rw.c

index 3fcc000efc535baf25cf930d012b64b8ed20a6e6..4fa21f7e23085aafbdef58ce7d4805e07418118c 100644 (file)
@@ -334,7 +334,7 @@ sclp_dispatch_evbufs(struct sccb_header *sccb)
                        reg->receiver_fn(evbuf);
                        spin_lock_irqsave(&sclp_lock, flags);
                } else if (reg == NULL)
-                       rc = -ENOSYS;
+                       rc = -EOPNOTSUPP;
        }
        spin_unlock_irqrestore(&sclp_lock, flags);
        return rc;
index 4be63be7344564a113e29a0051c79ac430b372a6..3b13d58fe87bb7cf431a912052862c3be0d6ce7f 100644 (file)
@@ -463,7 +463,7 @@ sclp_emit_buffer(struct sclp_buffer *buffer,
                /* Use write priority message */
                sccb->msg_buf.header.type = EVTYP_PMSGCMD;
        else
-               return -ENOSYS;
+               return -EOPNOTSUPP;
        buffer->request.command = SCLP_CMDW_WRITE_EVENT_DATA;
        buffer->request.status = SCLP_REQ_FILLED;
        buffer->request.callback = sclp_writedata_callback;