Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751849AbdFFPDc (ORCPT ); Tue, 6 Jun 2017 11:03:32 -0400 Received: from mail-sn1nam01on0046.outbound.protection.outlook.com ([104.47.32.46]:3552 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751436AbdFFPAr (ORCPT ); Tue, 6 Jun 2017 11:00:47 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Ioana Radulescu To: CC: , , , , , , , , Subject: [PATCH 04/18] staging: fsl-dpaa2/eth: Remove incorrect error path Date: Tue, 6 Jun 2017 10:00:27 -0500 Message-ID: <20170606150041.10955-5-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> References: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131412348446179325;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39410400002)(39400400002)(39380400002)(39850400002)(39860400002)(39840400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(81166006)(110136004)(85426001)(77096006)(8656002)(54906002)(53936002)(8676002)(39060400002)(86362001)(305945005)(2906002)(356003)(7416002)(5003940100001)(1076002)(38730400002)(4326008)(47776003)(5660300001)(36756003)(106466001)(105606002)(189998001)(48376002)(498600001)(33646002)(8936002)(50466002)(76176999)(50986999)(2351001)(104016004)(6666003)(2950100002)(6916009)(50226002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR03MB175;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD024;1:rbrQXR7d3Y8s1dAheNSLJS1UBXGU4qrC9Fr6HBdZa9ypBxfddp2530XRPobtlfntafq+9hrvFihuwjc9jkN7JldiDZOdXAiLR0YCgLXllxPSWeK2ZjA0Rarf8FHDX9FBoYw0vlmzmb3OsBRyQeOLqhBoEjCY9Kgt0/kZcqoLRPs7wKjNXBrrk8TcU2tfdjFelzlUjlvARVDZoj0FI8Zq8bU/FccUarilxc9EYK5gIQ0O7aJdligh4QbHchBPu+nZou4doV7K8xM7caT27S0AJ5nPCYgevDJ8mrbVqLSsNlAj+c6501GQ+jlQoQIVMXOoZ5WLx2+IZVnosIwViLc2nyEPgd2klI1CFW2Cp5igaz+a3o660IeTZxzx6f7LwPsXF0kgyuvVLxZHEcC1VUWkm8B6ha4hTdUDRKgubfFvpUGFGai9ljcUgCrK8M6vaOBlnM8mAJ+UZp/Cd6PL4amWWp/GtRJRyVdnnS/hEe2qJbfa/zeCAN/Q+6DapxwV3PwrtymXYElx638qVnrkr9ex85sy7TEouQliQ2KDLdGsBk686MRh/UWJtK7mAFdMvPJxjIv4n3O55kGPzeIUQpHvCFhhWcGL+uYv3Ms25ywNpDdDnc3z2UlyB2X8Ae/GDv7Ml9AWemoTCX79W88TgG9yZWn3OrkCMNXKfDxTM9aQRVd+K7hivlFXKy6Gy12oktOB MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY2PR03MB175: X-MS-Office365-Filtering-Correlation-Id: e29277ed-c2cb-4973-939d-08d4acecce9d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BY2PR03MB175; X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB175;3:rOE7m6jElhH3h9BPDlXqkoHUTE1n8FYxtP7x3DRgKgrLwcmRKBSFW2RwJSxRzR53Lf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PzR02qIPS0IXnr4kyV41gaO0jq0DBhQDJa18uYWPEC7sUJUAvaLO2aQY7mAi02I7OOgBveH4DKdMlxo52O5KaLSVcyNUXm9R5EzDV37hPd8Y1g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123563025)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR03MB175;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR03MB175; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB175;4:I0XvaTjP4LnZMuwGWRDjnGRL0+lRpD91gSkPCi3zRZi?= =?us-ascii?Q?jKassgbf1aciDN+BaoA1/JMCLGOLYxwWFXFsJvSsxiS2ialaWbbUXaXUPkMY?= =?us-ascii?Q?o7qp0f5uhU/Ece8esSAPu0KFObxTDLmK5/zyeDaEFK9jh0NMm+0c+05jaKaq?= =?us-ascii?Q?2+pLPw8TmcceGsnIr1IYJft4JUlyKjrZJvvEyc+bOTNSSEF5wDb0NnSlGlDu?= =?us-ascii?Q?pDa3j8yzN6K88mVtNgh0PvylmBN7I0P6sZNtcGibZCwkR4UrB8ZOkqmIJFz/?= =?us-ascii?Q?Mx4bqyErUL29n/rNVU41wDixGWKbKbddvKhL2B4f0/skb7zwm8zYxKiQwem2?= =?us-ascii?Q?2zwrRqg2vjsSVRycuYM6o9tJd9i3Xlr65Z+hqhLJ3dhHw2fNCsI5lMs1WERv?= =?us-ascii?Q?Utji2BHTRt1jy0tSgI6+H0TKDy6DLo00XSooYLO/In9rALVsvtP4EV2M4pIx?= =?us-ascii?Q?3N7xhI3IknbcoPyhKM+7phwIim82JbWk/EaojB3egYZaAf5R0JCf747LtbfZ?= =?us-ascii?Q?bAB14KgE2tZcIXJbnV+pE3UTOdtzVTR6ctvv+w2X89mDrl/fqxS+ucgC47DN?= =?us-ascii?Q?kL3VRx9HSxJlN56FLlhWqxyrPVvtmvXtKVqajCuJUz+DatdcQBkCy4ZLjmRQ?= =?us-ascii?Q?77MiCoFeow0cck9JarMS9bEib5BmdXU1ROIowRefGQCwkgUDfJWQApKs8kTt?= =?us-ascii?Q?lzEafWmOBaK5XLbUoc6ENuF4XVowBRxgrdTR0OId84wEqjJzCL5uCQJNS641?= =?us-ascii?Q?6oCS0ddHpO961WegFsm7bgAre9XYK2AKEYQ5fJceyxLG2aznw4t22aHWdwnc?= =?us-ascii?Q?iPz/ti3Njcmh0f5NrwsYm7Jg1d0ovD3iPS/EMvQbgo+F1ASgBecfn8PC2z8F?= =?us-ascii?Q?nTQrnsAmUTrNFYjZtuMWRmC0Rsvw4nfsUQQjCvzwJcDsyHjN/wm5cBUky8bJ?= =?us-ascii?Q?9cxFXoH5DE3Oqet2MuDX0gSutM7u8zSAmJ71uinxbgtO/WlSp4YXLhbY7jP/?= =?us-ascii?Q?OTajuLBiMEoouNY5JKn3qw9tiFvjreoJcMCiHq8Eh8pldDZJMjioJJvXyaBq?= =?us-ascii?Q?mageWnJJSdiQsmBX1TuDE242YF05dktGUUjvf+AcbxqJIKCmic3BR34Idu19?= =?us-ascii?Q?ocX8/8w8iAydjzNvSfZTrd6704aogC1MmBR3ju1clwZfAWs/pYjhr+LrDmBP?= =?us-ascii?Q?c0WywL41rNyVptndqsmcetzDKgiNUUOMX6ACUHseDDBUU0K+Cgb+4RQFp8Fw?= =?us-ascii?Q?eSwnH2uBq6GJenTNnbcNqNnJz5kgdzOAflOS4?= X-Forefront-PRVS: 033054F29A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB175;23:PkJB+l12pa0vN39jYnTDtUt/CGQwmixR/mgsxWGGvY?= =?us-ascii?Q?o4F0TAWkmfBNLa7uu7VBd8yDBhEYJbsAnW0E86cQ1ZcoC2aDQPgzdmkkchdC?= =?us-ascii?Q?F4f+6x96Tsoz0iG6wwArp6pm/kmHQrGI67Tn+mgt6JddEX0wOprCfG9bWMOq?= =?us-ascii?Q?ZobYpaPN1JbQo6yVZjXQ/KwiEBsg4FBostAGeWkDKq7uhcMLB6WsWdbijG24?= =?us-ascii?Q?qlDKfgWFmW9hs4eRUNoucVoz8ZO3/qF3e+NMkGPNF2tofm/h4zLUrVvYEbfo?= =?us-ascii?Q?5yIwNPV3BeqTdsZfMjai8TfhMsqW6ysWn87IntwsQkbxKOQJBLQtdJXRbDlw?= =?us-ascii?Q?rEMKj9qn6+poweJuQ982o+jKT5F696A0aWR/KWM7HLF7ddm04iHyhD235RUv?= =?us-ascii?Q?2ymaUJLY/zQyOlRzq5G++StFpqAZKH0ZRsDdVj6T0pd/AdXBkc/Lrx/qbagj?= =?us-ascii?Q?QAjtZiklTHGyS/dHYGxqz38Mdu1tcg/IzrduE5dcSi3lHP6RLDD2eMaxJTMG?= =?us-ascii?Q?0qXX78Pd9T9RGOYGGy+jpfM81whmtxy+euvN11c5T9cKIwoUwRAm8M/7dG5v?= =?us-ascii?Q?XsqUaWoQ6v8d3Uc51Pb+4K/guGs9teu3628+9HRrmlQnLDDqql+kKg6Z/fPj?= =?us-ascii?Q?m8qRBp+9aMbWvtFCnut02sWk1gJlr0p30N4BgsvWhssK2drN8ubDAd6PLb6a?= =?us-ascii?Q?kxP65MEd0wzxfzVN4mEuMz93NuOrOvprn8A8tI95rUHu+oyeCQEEd3z70cjb?= =?us-ascii?Q?HLAp4QOJdnifORV9TtpNzK0cLFW+12GhJ71jOklUC2bCyTTvtT3xCx/sP9Py?= =?us-ascii?Q?akKNE91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KDMSYi/FnbvKCws94kvba8jXfDHEDLayjtubQIhemr6wuHimFU2EuQsXO65MkoIeqndVFlAd86tCd1aa14W/6xyheWSCe1aOQ== X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB175;5:QChwsvTH+q6BGBs9p3pa4SJ7pftRidri9/w7zRURyBC/dYthO039K1wVNGZE6ZsT3Vy/EzFBZI+hwUTyFFQwJPZLaVAKICqP0awObpKKQQWgLKRv+UqWYfRZ79wC/xRlhziSvkuc1WYbnC0K3oRyXUXsh75x5ZO/sobH5ofNEQW0U9LPJEraOlgvkvC2TRfQqfDbeSgRD5GUZ2pZvDSZYCdAHFRKFrUKqqe3bPaw2bxKtExPXLAnEjQGsXtdBXhrjVK1mU6oomBxSw+VzwWqQl5qKLy4y7KPEfl3W1JpY1E0yAZVvDIaTBm2SXodfJMrhXDICXVgvUOQobC5Kk39fIk88gpRc0cNwhqD1KehcmtRFCsRLYM9NmPkFqnFdshon8VhFlgfhq2j2GEY9JI/76eVgjCOX/hXGwmSZbQTbNhbXBdUuVpeUFxHMklbpZO58+M/p6q2/0ctilTjmGVLnL97VM0EoilnHzuY2IxGx15dy/dKDTosCJ2pW9BGL+9LWImkoNcVuMPAmXtKz2LIkg==;24:XLvOvoYnlgVatB3Z3k1x2mtlTMHBQCgHYkPV/HlRcy22GV20aomIH1ow3ZR303qL7SULSKJ49ibfMIWu54rZwTfUxeNzkqxH9NjnR8C4+A0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB175;7:KGJPfo3Dqi+hqsNlePJUt6YIBGmZ3iA9sSbMc0E9SQyXXRVc+NsKi+bc7TqOE4SBAj/V0L06VCbw6gpSWcu5TOO5grc2ChMlWcfYkCeX5xSDMlEs5CZn/ltVRWk1t1vyYZWIVN9Qqc24psHJhz06sUIR++wjJQzKNN5uc/BGQSeoQkJB+qc/rg6/b7QaJtXyRY15JF3TSksg45gkM2bvoqKWCC/JbzPkDOsvesFfuUua81y8J9+0qj3dVOtn7GZUu6EaWU7v50BM5KKSx1UP8IdOT1ev8PwY0KLSgzwqdiJpLX/r0ALV34lOmaRtBT8r7zeoAvkn9VWpCE0qnxFzbg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 15:00:44.3059 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB175 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 26 Not having Rx hashing distribution enabled for an interface is a valid configuration and shouldn't be treated as an error. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index a9e245df2488..f63054e071b3 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -1969,8 +1969,8 @@ static int dpaa2_eth_set_hash(struct net_device *net_dev, u64 flags) int err = 0; if (!dpaa2_eth_hash_enabled(priv)) { - dev_err(dev, "Hashing support is not enabled\n"); - return -EOPNOTSUPP; + dev_dbg(dev, "Hashing support is not enabled\n"); + return 0; } memset(&cls_cfg, 0, sizeof(cls_cfg)); -- 2.11.0