mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 09:13:55 +08:00
s390/sclp: use -EOPNOTSUPP instead of -ENOSYS
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>
This commit is contained in:
parent
2267a0c85c
commit
d06cbda69f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user