From: Gangfeng Huang Date: Wed, 6 Jul 2016 05:22:57 +0000 (+0800) Subject: igb: fix error code in igb_add_ethtool_nfc_entry() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54be81328c07324a88cd5dd86b2e7422db3e768e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git igb: fix error code in igb_add_ethtool_nfc_entry() Use error "rmgr: Cannot insert RX class rule: Operation not supported" is more meaningful than "rmgr: Cannot insert RX class rule: Unknown error 524" Signed-off-by: Gangfeng Huang Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index ef5408b8e083..0c33eca7c832 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c @@ -2851,7 +2851,7 @@ static int igb_add_ethtool_nfc_entry(struct igb_adapter *adapter, int err = 0; if (!(netdev->hw_features & NETIF_F_NTUPLE)) - return -ENOTSUPP; + return -EOPNOTSUPP; /* Don't allow programming if the action is a queue greater than * the number of online Rx queues.