Commit ffb95251 authored by Eugene Crosser's avatar Eugene Crosser Committed by David S. Miller

qeth: replace ENOSYS with EOPNOTSUPP

Since recently, `checkpatch.pl` advices that ENOSYS should not be
used for anything other than "invalid syscall nr". This patch
replaces ENOSYS return code with EOPNOTSUPP for the "unsupported
function" conditions.
Signed-off-by: default avatarEugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff1d9291
...@@ -137,7 +137,7 @@ static int qeth_setdel_makerc(struct qeth_card *card, int retcode) ...@@ -137,7 +137,7 @@ static int qeth_setdel_makerc(struct qeth_card *card, int retcode)
rc = 0; rc = 0;
break; break;
case IPA_RC_L2_UNSUPPORTED_CMD: case IPA_RC_L2_UNSUPPORTED_CMD:
rc = -ENOSYS; rc = -EOPNOTSUPP;
break; break;
case IPA_RC_L2_ADDR_TABLE_FULL: case IPA_RC_L2_ADDR_TABLE_FULL:
rc = -ENOSPC; rc = -ENOSPC;
...@@ -1662,7 +1662,7 @@ static int qeth_bridgeport_makerc(struct qeth_card *card, ...@@ -1662,7 +1662,7 @@ static int qeth_bridgeport_makerc(struct qeth_card *card,
break; break;
case 0x2B04: case 0x2B04:
case 0x0004: case 0x0004:
rc = -ENOSYS; rc = -EOPNOTSUPP;
break; break;
case 0x2B0C: case 0x2B0C:
case 0x000C: /* Not configured as bridge Port */ case 0x000C: /* Not configured as bridge Port */
...@@ -1717,10 +1717,10 @@ static int qeth_bridgeport_makerc(struct qeth_card *card, ...@@ -1717,10 +1717,10 @@ static int qeth_bridgeport_makerc(struct qeth_card *card,
else else
switch (cbctl->ipa_rc) { switch (cbctl->ipa_rc) {
case IPA_RC_NOTSUPP: case IPA_RC_NOTSUPP:
rc = -ENOSYS; rc = -EOPNOTSUPP;
break; break;
case IPA_RC_UNSUPPORTED_COMMAND: case IPA_RC_UNSUPPORTED_COMMAND:
rc = -ENOSYS; rc = -EOPNOTSUPP;
break; break;
default: default:
rc = -EIO; rc = -EIO;
...@@ -1948,7 +1948,7 @@ static int qeth_anset_makerc(struct qeth_card *card, int pnso_rc, u16 response) ...@@ -1948,7 +1948,7 @@ static int qeth_anset_makerc(struct qeth_card *card, int pnso_rc, u16 response)
case 0x0004: case 0x0004:
case 0x0100: case 0x0100:
case 0x0106: case 0x0106:
rc = -ENOSYS; rc = -EOPNOTSUPP;
dev_err(&card->gdev->dev, dev_err(&card->gdev->dev,
"Setting address notification failed\n"); "Setting address notification failed\n");
break; break;
......
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