[S390] dasd: use -EOPNOTSUPP instead of -ENOTSUPP
authorStefan Haberland <stefan.haberland@de.ibm.com>
Thu, 17 Jul 2008 15:16:49 +0000 (17:16 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Jul 2008 15:22:10 +0000 (17:22 +0200)
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>
drivers/s390/block/dasd_diag.c

index ab5c5b43bdcfdd3af119e2a7a4ce71da7dfed41c..85fcb43710541e4d1057bd06deeac90f29346992 100644 (file)
@@ -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;
        }