Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3188157pxu; Tue, 8 Dec 2020 05:57:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3tTEsmiyEm1VXPgavl0KIvIATE6qEFucolMBgQyaZh10I/Dem51cWkZU9tgcIFHEjTKCE X-Received: by 2002:a50:ee1a:: with SMTP id g26mr24968929eds.68.1607435848650; Tue, 08 Dec 2020 05:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607435848; cv=none; d=google.com; s=arc-20160816; b=mlG2g+btsPM1JRv70p6Rtg4oEo5K7HX7LObxQcNXdsf5sdWo2bY8fuzfSsZ+kK88H4 N8RyuxlrJEMkier73UO1ZIKsPEuHYPfQsEQRcpqOke+30n8ewWqneTyJbwlIi3IflItm s6pPuLf/5PDpj2TCAcMosb3YwpyAphTEDpHc3glgS1W590HHBuk6HtwNtanVHE/u+fFm woxnIDW3vl7ER+Ag4h0HMZw9Z59/i+Ba2J9gynND4mJvjenHvFWW9hdYADBncDu3Q+hh Xd8V4bzJDVhuXxhNt3UZ3kpysDMAcNyT08e/SvWEROENIrL83rjAp8inkS/GrA2OLgi1 NSaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+Osc9KuCz2qT/iqKMovRlGX9CL4+sgbc1COLov/NH1Y=; b=mKWsTNLVlQgdIqYWm55O/gPUcaJJWmpqmp+94Rkf2l/r2peVx7ED9i3bMr0A7z+Mj8 OSzgX5abAJcypixkWA5MQZd8KqjXSN4Ir7BiJyatA2Wo3au/USGMzp3JKqlcFTAT8Juc s797SU3tTHO570hnqSyhxGBz3j6sGYRZONePYeFPny/z0H2Ex/GTRekGvM+qNjpLbJua jnctpjLHzbbloA5DyFF4vZzPgYrwTk6wr44yEC69plrB19KjoxjP8uNliD1o25q9LdJc 79Vnh9CKjnotsZ1fGJ/7OI3HRA42XX543ch/eWBQE4BuwY8hSRLJtf05qUdcEbWeZE6y 854g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si10000695edv.105.2020.12.08.05.57.06; Tue, 08 Dec 2020 05:57:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729386AbgLHNyS (ORCPT + 99 others); Tue, 8 Dec 2020 08:54:18 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9555 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727716AbgLHNyR (ORCPT ); Tue, 8 Dec 2020 08:54:17 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cr1pZ2djPzM1L7; Tue, 8 Dec 2020 21:52:54 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Tue, 8 Dec 2020 21:53:27 +0800 From: Zheng Yongjun To: , , , , , CC: Zheng Yongjun Subject: [PATCH net-next] drivers: net: ionic: simplify the return expression of ionic_set_rxfh() Date: Tue, 8 Dec 2020 21:53:53 +0800 Message-ID: <20201208135353.11708-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c index 35c72d4a78b3..0832bedcb3b4 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c @@ -738,16 +738,11 @@ static int ionic_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *key, const u8 hfunc) { struct ionic_lif *lif = netdev_priv(netdev); - int err; if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) return -EOPNOTSUPP; - err = ionic_lif_rss_config(lif, lif->rss_types, key, indir); - if (err) - return err; - - return 0; + return ionic_lif_rss_config(lif, lif->rss_types, key, indir); } static int ionic_set_tunable(struct net_device *dev, -- 2.22.0