Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eugene Crosser and committed by
David S. Miller
ffb95251 ff1d9291

+5 -5
+5 -5
drivers/s390/net/qeth_l2_main.c
··· 137 137 rc = 0; 138 138 break; 139 139 case IPA_RC_L2_UNSUPPORTED_CMD: 140 - rc = -ENOSYS; 140 + rc = -EOPNOTSUPP; 141 141 break; 142 142 case IPA_RC_L2_ADDR_TABLE_FULL: 143 143 rc = -ENOSPC; ··· 1662 1662 break; 1663 1663 case 0x2B04: 1664 1664 case 0x0004: 1665 - rc = -ENOSYS; 1665 + rc = -EOPNOTSUPP; 1666 1666 break; 1667 1667 case 0x2B0C: 1668 1668 case 0x000C: /* Not configured as bridge Port */ ··· 1717 1717 else 1718 1718 switch (cbctl->ipa_rc) { 1719 1719 case IPA_RC_NOTSUPP: 1720 - rc = -ENOSYS; 1720 + rc = -EOPNOTSUPP; 1721 1721 break; 1722 1722 case IPA_RC_UNSUPPORTED_COMMAND: 1723 - rc = -ENOSYS; 1723 + rc = -EOPNOTSUPP; 1724 1724 break; 1725 1725 default: 1726 1726 rc = -EIO; ··· 1948 1948 case 0x0004: 1949 1949 case 0x0100: 1950 1950 case 0x0106: 1951 - rc = -ENOSYS; 1951 + rc = -EOPNOTSUPP; 1952 1952 dev_err(&card->gdev->dev, 1953 1953 "Setting address notification failed\n"); 1954 1954 break;