Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1701948pxb; Thu, 16 Sep 2021 13:23:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJNDOi+JP1qW/LRP9Ak4HkAlQsGQjBlzX2Njb6GR8sp2KS+c53Rt1tBdnGEhyAN1m7IhB9 X-Received: by 2002:a17:906:bce5:: with SMTP id op5mr8237535ejb.59.1631823781454; Thu, 16 Sep 2021 13:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631823781; cv=none; d=google.com; s=arc-20160816; b=lDRfw/Iqq2bAybRIJ97Rs+zpfNXJhomVhkSMS0PEUUqX0j8PhFFwg+fM1VBSDnRvWf Sz/CY2ov8O6UWJpGSZZae+NqWLFsAEbj++YJvAIgFXyQpOnpc2uFqH78/Mzgnoqygc9y 361pRGww5fHbm0aBh+GVK8imul37UqL4vVBeD94JL6wJcHZ6VWd9TUJ9SPbC7UnKPK1m Yvk/KVIY5gRP1t7rLGBRxukcfHS5V0c1omkat5oHUUPYw4BXnNueUpCXUIQY+iwi22vF VGdSty9JkFdEI1k1N0tYtqudfqlskSVgHDMI6A9EP2Vn/RgghBTvq8Q6EuQV21lxmc0s 67Xg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+CTnAVZ8Sz+xaY8vyGaZiHAHUuTjy40YkdgNWXIi6Ck=; b=OnI75l31kSWcZBC4C6bDOhqIJbuhlVR1JRYXATGwHV88Mlqt3psO1zDOtz0gtOKlPf 4NCCpBeugtuGzYrKmEbkIvVl4IO/k6wJSdNJKfUtjOCRMN8HkzbTL6PxmIEoa7k0+C50 1htGiTRwSgQwKmeDHx8ov0lYGgcmOR1bu7PHjePe3qG2qE57k4BM1+3HB6GW11rF6wgc UKufaErUDYjkMnOGRbztoA384eGv9zad2FWKbKJ2RLfb077wqaePv9Gz0xMfsmjKPuFY 3YuJzSYvewitM9yWzPFpfsb2DVGKrFG8blkyhfgSEPr2e+wNe/mySLZymaF70Q9HVQeP t07g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DcrWTHug; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si4206845edd.531.2021.09.16.13.22.36; Thu, 16 Sep 2021 13:23:01 -0700 (PDT) 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=pass header.i=@linuxfoundation.org header.s=korg header.b=DcrWTHug; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241169AbhIPQY4 (ORCPT + 99 others); Thu, 16 Sep 2021 12:24:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:54936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241155AbhIPQPR (ORCPT ); Thu, 16 Sep 2021 12:15:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 65E21613B1; Thu, 16 Sep 2021 16:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808669; bh=HbKdG9aytO0ioDG/KY7sAZQbkCDdECINTMrITFOu0ZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DcrWTHugXaIN3EaCYnqtEVn3dGwIRJXTas0g9PZr8VUPIImMr9bOXuTlMqnh65bQn oq9W3L5x73GKPuX6xXWczumOE5yfquInfnOrP4u72u/v6DozfKUbE7iKbGRPWpWkFv D4RBlz9ogucxFiuQ2qSbqJcFPJW7Tboo0IkKaDcI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Louis Peens , Simon Horman , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 146/306] nfp: fix return statement in nfp_net_parse_meta() Date: Thu, 16 Sep 2021 17:58:11 +0200 Message-Id: <20210916155759.031428896@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Söderlund [ Upstream commit 4431531c482a2c05126caaa9fcc5053a4a5c495b ] The return type of the function is bool and while NULL do evaluate to false it's not very nice, fix this by explicitly returning false. There is no functional change. Signed-off-by: Niklas Söderlund Signed-off-by: Louis Peens Signed-off-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c index 437226866ce8..dfc1f32cda2b 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c @@ -1697,7 +1697,7 @@ nfp_net_parse_meta(struct net_device *netdev, struct nfp_meta_parsed *meta, case NFP_NET_META_RESYNC_INFO: if (nfp_net_tls_rx_resync_req(netdev, data, pkt, pkt_len)) - return NULL; + return false; data += sizeof(struct nfp_net_tls_resync_req); break; default: -- 2.30.2