Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4373046pxu; Wed, 9 Dec 2020 15:47:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9ENY1qj7o9w3wif0VPvyKFA/pMzsKjAmPup69Mv+ZFOy4Lj3rOlzAS2B7vAWAS9//YGJf X-Received: by 2002:a50:e8c4:: with SMTP id l4mr4198685edn.337.1607557623724; Wed, 09 Dec 2020 15:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607557623; cv=none; d=google.com; s=arc-20160816; b=N2hDF6dK796qCUWY8ellHPxv854APbo9MvofsbdASUcyK1fW19+z8K3l8LOpcZ52fo bZ5FUH/GtpZo7ADBEh8URS8+PXIyplrsK4KPStq4dADj8Ju+LYD2tFDeCyAFgcBcorBH /5xNqQbpoMZaquXCgqcx+NCm2/i3NcbYHzZWYaKrZGwt+5vXTdIa0vod1r/D1XEgDpXM pbmBE57JA2s7Sa+GIBloupS+Ol7jYxSMg+Hb1L0uBSwWlN1d88N3BxNhcBEajzNOOC9r LSjLcRePN5Bb49/qc4IYPW09LrLNpw+uX3ZXYhowIOpqLPDLh4ZbLCOJdOrIaFACKlTF hLqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=I5oqeXJGYWCS5I3GZe6iJ/uI1nEaQDlo5ahKfTZrQxU=; b=HapfNg3aCivtY0mJJzw6wEthQX4vJedCgsq1sdf5z4vcPy+jMEt3Sp5hW9jPgvSjH0 STibZEvO06q7RZxfIgr5abgl0CzIx6Y/FZvjfbQzZPkDtWwhu5J/rlXZG5muo5GoBiVI V3cj1piOFuIrHKk+fJiXD71zAT0JNcaMOaaX3p5JT1JSwapPyB4OPQQ/d3+gPRO0as6w cbNLWhRa0cF/buoYEOLd5ZJnIiOjecb9GXY0pB41QH/OGHqPXnvbdjsMV1WvbA67LUQe IkPbncM76SjiwVIOTbANkmlV715ZqGIjUTDrIyZWBE3K11FYB5MkUImQa8tWsHGvKNEh hN7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=ms+3ifkm; 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 e25si1571927ejt.153.2020.12.09.15.46.33; Wed, 09 Dec 2020 15:47:03 -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; dkim=fail header.i=@pensando.io header.s=google header.b=ms+3ifkm; 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 S1731993AbgLISDf (ORCPT + 99 others); Wed, 9 Dec 2020 13:03:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbgLISDf (ORCPT ); Wed, 9 Dec 2020 13:03:35 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F166AC0613D6 for ; Wed, 9 Dec 2020 10:02:54 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id e2so1675907pgi.5 for ; Wed, 09 Dec 2020 10:02:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=I5oqeXJGYWCS5I3GZe6iJ/uI1nEaQDlo5ahKfTZrQxU=; b=ms+3ifkmomxZx1fpbh86I6gUljxcDqH4op4xQnVmPOGRdBABYpnJHE71gP4zzXmWpV Fgzn2va8jJ1GzuN0+OdfNGAR8iN/Fh5T9Ed+Ra4UZ+GLfSS0NhtTUbIo8FAKZ4xTw2Xg JRFSg71R6MaQzdtJduz5oOH71cp+80kTBM8f+0sMlV+BUK8wkIiz0yfL1WZZIBX9W1+b ryLb9HasoVdN9Gjit8SHzhx91hlQiE83VAJCyEAa5xHmrfS/L1MjecExmVnBpZdUDJox vqCfPWnMFSqPbrmn4XNglGWfK3oQrGHhfzLEZVrLMvNo43D1C4ZPxp4O9npOiV+lBB6X F2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=I5oqeXJGYWCS5I3GZe6iJ/uI1nEaQDlo5ahKfTZrQxU=; b=pqflnNOEfxRSh+6yc82pogl2UuCi+976+8RHjPIRI63UAjxLOiQU3/1riMasS3Ggwt rwGyjBUAKw0VK3DX8od/VGGIbXbRbhzXwPRp8IQ1hzbZQVik9dID2eS46U3wNmA0r2+/ zuQCaHdj/dfaCI7yk5a/mGRGOd4jrl0qv6LtYhoqPtrXl8E6+qZ0HsOgYU14qrJSIgD2 iYgNnWG2FrxX0CcTgWrqxqtxhIgcV7vrnleEp2PUbFrTs9ko2vSRwMngieszeTu8+XU3 LLTw74ELbacMdPjMquq5Uvy0IRxLBtGdZec6pK/LyJXrKg6FmsWQZCYbzC/mJ7I5ZZSE VV9w== X-Gm-Message-State: AOAM530g3nD+qdnWCEeL3u4pVhDcVTgwcrZH7sjQY7WWnsRkzbSEE1sU Yfil6GfbMiJxRJga+rvZkI5fm7hw/F1O8Q== X-Received: by 2002:a63:4509:: with SMTP id s9mr2950777pga.316.1607536973606; Wed, 09 Dec 2020 10:02:53 -0800 (PST) Received: from Shannons-MacBook-Pro.local (static-50-53-47-17.bvtn.or.frontiernet.net. [50.53.47.17]) by smtp.gmail.com with ESMTPSA id g5sm3193868pfr.87.2020.12.09.10.02.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 10:02:52 -0800 (PST) Subject: Re: [PATCH net-next] drivers: net: ionic: simplify the return expression of ionic_set_rxfh() To: Zheng Yongjun , drivers@pensando.io, davem@davemloft.net, kuba@kernel.org, leon@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201208135353.11708-1-zhengyongjun3@huawei.com> From: Shannon Nelson Message-ID: <9275ad90-ee7e-6e23-6a33-bb0f7a2e2eeb@pensando.io> Date: Wed, 9 Dec 2020 10:02:51 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.1 MIME-Version: 1.0 In-Reply-To: <20201208135353.11708-1-zhengyongjun3@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/8/20 5:53 AM, Zheng Yongjun wrote: > Simplify the return expression. > > Signed-off-by: Zheng Yongjun Acked-by: Shannon Nelson > --- > 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,