net: atlantic: Replace ENOTSUPP usage to EOPNOTSUPP
authorMark Starovoytov <mstarovoitov@marvell.com>
Fri, 26 Jun 2020 18:40:33 +0000 (21:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 23:32:50 +0000 (16:32 -0700)
This patch replaces ENOTSUPP (where it was used by mistake) with
EOPNOTSUPP.

Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c

index 647b22d..43b8914 100644 (file)
@@ -1188,7 +1188,7 @@ int aq_nic_set_loopback(struct aq_nic_s *self)
 
        if (!self->aq_hw_ops->hw_set_loopback ||
            !self->aq_fw_ops->set_phyloopback)
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
 
        mutex_lock(&self->fwreq_mutex);
        self->aq_hw_ops->hw_set_loopback(self->aq_hw,
index 1d9dee4..bf4c41c 100644 (file)
@@ -217,7 +217,7 @@ static int hw_atl_utils_soft_reset_rbl(struct aq_hw_s *self)
 
        if (rbl_status == 0xF1A7) {
                aq_pr_err("No FW detected. Dynamic FW load not implemented\n");
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
        }
 
        for (k = 0; k < 1000; k++) {