From: Heiko Carstens Date: Mon, 7 Aug 2017 13:16:16 +0000 (+0200) Subject: s390/vmcp: return -ENOTTY for unknown ioctl commands X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ae48c046814d8b0386883aeb9060b08f46a2ec1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/vmcp: return -ENOTTY for unknown ioctl commands Return -ENOTTY for unknown ioctl commands instead of -ENOIOCTLCMD. This isn't that much of difference, since common code will translate -ENOIOCTLCMD to -ENOTTY anyway, but this way it seems to be more obvious what is happening (at least to me). Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/vmcp.c b/drivers/s390/char/vmcp.c index 18b30119a70e..30fd474c86b3 100644 --- a/drivers/s390/char/vmcp.c +++ b/drivers/s390/char/vmcp.c @@ -231,7 +231,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return put_user(temp, argp); default: mutex_unlock(&session->mutex); - return -ENOIOCTLCMD; + return -ENOTTY; } }