Skip to content

Commit

Permalink
net: atlantic: Replace ENOTSUPP usage to EOPNOTSUPP
Browse files Browse the repository at this point in the history
This patch replaces ENOTSUPP (where it was used by mistake) with
EOPNOTSUPP.

Signed-off-by: Mark Starovoytov <[email protected]>
Signed-off-by: Igor Russkikh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
mstarovo authored and davem330 committed Jun 26, 2020
1 parent e39b8ff commit e35df21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/aquantia/atlantic/aq_nic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit e35df21

Please sign in to comment.