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

return value -ENOTSUPP is not valid in userspace context, use
-EOPNOTSUPP instead

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
Stefan Haberland 2008-07-17 17:16:49 +02:00 коммит произвёл Heiko Carstens
Родитель 779e6e1c72
Коммит 8586cb60ce
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -349,7 +349,7 @@ dasd_diag_check_device(struct dasd_device *device)
if (rc) {
DEV_MESSAGE(KERN_WARNING, device, "failed to retrieve device "
"information (rc=%d)", rc);
rc = -ENOTSUPP;
rc = -EOPNOTSUPP;
goto out;
}
@ -364,7 +364,7 @@ dasd_diag_check_device(struct dasd_device *device)
default:
DEV_MESSAGE(KERN_WARNING, device, "unsupported device class "
"(class=%d)", private->rdc_data.vdev_class);
rc = -ENOTSUPP;
rc = -EOPNOTSUPP;
goto out;
}