]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/qeth: don't return -ENOTSUPP to userspace
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 18 Dec 2019 15:32:28 +0000 (16:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:00:27 +0000 (21:00 -0800)
ENOTSUPP is not uapi, use EOPNOTSUPP instead.

Fixes: e62d2b0f85e4 ("qeth: Add new priority queueing options")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_sys.c

index e81170ab6d9aa4847adade22f826a183ab28df05..7bd86027f5595d53d44aec78f88059bf204d0fe3 100644 (file)
@@ -207,7 +207,7 @@ static ssize_t qeth_dev_prioqing_store(struct device *dev,
                card->qdio.default_out_queue = QETH_DEFAULT_QUEUE;
        } else if (sysfs_streq(buf, "prio_queueing_vlan")) {
                if (IS_LAYER3(card)) {
-                       rc = -ENOTSUPP;
+                       rc = -EOPNOTSUPP;
                        goto out;
                }
                card->qdio.do_prio_queueing = QETH_PRIO_Q_ING_VLAN;