提交 8586cb60 编写于 作者: S Stefan Haberland 提交者: Heiko Carstens

[S390] dasd: use -EOPNOTSUPP instead of -ENOTSUPP

return value -ENOTSUPP is not valid in userspace context, use
-EOPNOTSUPP instead
Signed-off-by: NStefan Haberland <stefan.haberland@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
上级 779e6e1c
...@@ -349,7 +349,7 @@ dasd_diag_check_device(struct dasd_device *device) ...@@ -349,7 +349,7 @@ dasd_diag_check_device(struct dasd_device *device)
if (rc) { if (rc) {
DEV_MESSAGE(KERN_WARNING, device, "failed to retrieve device " DEV_MESSAGE(KERN_WARNING, device, "failed to retrieve device "
"information (rc=%d)", rc); "information (rc=%d)", rc);
rc = -ENOTSUPP; rc = -EOPNOTSUPP;
goto out; goto out;
} }
...@@ -364,7 +364,7 @@ dasd_diag_check_device(struct dasd_device *device) ...@@ -364,7 +364,7 @@ dasd_diag_check_device(struct dasd_device *device)
default: default:
DEV_MESSAGE(KERN_WARNING, device, "unsupported device class " DEV_MESSAGE(KERN_WARNING, device, "unsupported device class "
"(class=%d)", private->rdc_data.vdev_class); "(class=%d)", private->rdc_data.vdev_class);
rc = -ENOTSUPP; rc = -EOPNOTSUPP;
goto out; goto out;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册