Commit b9993a38 authored by Frank Munzert's avatar Frank Munzert Committed by Heiko Carstens

[S390] vmur: Fix return code handling.

Use -EOPNOTSUPP instead of -ENOTSUPP.
Signed-off-by: default avatarFrank Munzert <munzert@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
parent 8de2ce86
...@@ -345,7 +345,7 @@ static int get_urd_class(struct urdev *urd) ...@@ -345,7 +345,7 @@ static int get_urd_class(struct urdev *urd)
cc = diag210(&ur_diag210); cc = diag210(&ur_diag210);
switch (cc) { switch (cc) {
case 0: case 0:
return -ENOTSUPP; return -EOPNOTSUPP;
case 2: case 2:
return ur_diag210.vrdcvcla; /* virtual device class */ return ur_diag210.vrdcvcla; /* virtual device class */
case 3: case 3:
...@@ -621,7 +621,7 @@ static int verify_device(struct urdev *urd) ...@@ -621,7 +621,7 @@ static int verify_device(struct urdev *urd)
case DEV_CLASS_UR_I: case DEV_CLASS_UR_I:
return verify_uri_device(urd); return verify_uri_device(urd);
default: default:
return -ENOTSUPP; return -EOPNOTSUPP;
} }
} }
...@@ -654,7 +654,7 @@ static int get_file_reclen(struct urdev *urd) ...@@ -654,7 +654,7 @@ static int get_file_reclen(struct urdev *urd)
case DEV_CLASS_UR_I: case DEV_CLASS_UR_I:
return get_uri_file_reclen(urd); return get_uri_file_reclen(urd);
default: default:
return -ENOTSUPP; return -EOPNOTSUPP;
} }
} }
...@@ -827,7 +827,7 @@ static int ur_probe(struct ccw_device *cdev) ...@@ -827,7 +827,7 @@ static int ur_probe(struct ccw_device *cdev)
goto fail_remove_attr; goto fail_remove_attr;
} }
if ((urd->class != DEV_CLASS_UR_I) && (urd->class != DEV_CLASS_UR_O)) { if ((urd->class != DEV_CLASS_UR_I) && (urd->class != DEV_CLASS_UR_O)) {
rc = -ENOTSUPP; rc = -EOPNOTSUPP;
goto fail_remove_attr; goto fail_remove_attr;
} }
spin_lock_irq(get_ccwdev_lock(cdev)); spin_lock_irq(get_ccwdev_lock(cdev));
...@@ -892,7 +892,7 @@ static int ur_set_online(struct ccw_device *cdev) ...@@ -892,7 +892,7 @@ static int ur_set_online(struct ccw_device *cdev)
} else if (urd->cdev->id.cu_type == PRINTER_DEVTYPE) { } else if (urd->cdev->id.cu_type == PRINTER_DEVTYPE) {
sprintf(node_id, "vmprt-%s", cdev->dev.bus_id); sprintf(node_id, "vmprt-%s", cdev->dev.bus_id);
} else { } else {
rc = -ENOTSUPP; rc = -EOPNOTSUPP;
goto fail_free_cdev; goto fail_free_cdev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment