Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1936681pxb; Thu, 16 Sep 2021 20:53:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4wHrgRFbYXoyt7YUKgxJj42UqwaXjvyGfWq197UmZB3Y6UmwDu/y/xuwmB6YV/M2sJBtU X-Received: by 2002:a17:906:3ed2:: with SMTP id d18mr10259554ejj.311.1631850807281; Thu, 16 Sep 2021 20:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631850807; cv=none; d=google.com; s=arc-20160816; b=OHxABjS6mmYIzeoqE3YRZVxRjN86SI7hSw9KMKmErRULfJ27i692AC5SPyDg5woftK Ta0dgzMUH2wNYaSmktFg8qs0EFvdMyL2AcIwzJPqup2m5ZB7J9xHdayAX2ofzxAEcnlh tTY55MkAyFzzFDRyA9dB0EXwnHLEi354xHAM3aFTQOiiCoQhg9wQhma90MjVCmtjXSoC Kb7jGY0nD4eA5PHNRnOKx0KTfj/DLWnmCwzIp4lcKjlHinnHR/kTzne7dmBteDypWDqf inHzUrrDWksYOqANNCG5hWSUgW1H07JB3Viba7WJ3ukaHQUl2dLPA8r1WUW2SksvnEQl rO5A== 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=4VMS7RYdEL/ArJu+xKfL087LejytNCsW+DUs9rp5ekk=; b=MhRleikecv5ltmrRtObrk5LAIEhQWbz8zVQwMgSCfcXcPl6k+ZBnIh8uffPqI+TPQv MVUIkeONuwyXdwZHbdyv59M/LtUoh8479TvjceYoXIk4TstyBH10u+adLmpU46INc9vO RXAgk3ZdpGBg6AoxL3kfCreBilkbyj+3514ex7KeEYynyugbMOrirGNJjtSHErbtOEoc RzFfa1F8UUGrCQG3oHLjgikee5+d+DjAo/31YgFA9HJbPNg8ub1rGtyDP7/ufmKO1QXT 6VyBAKzs5lw3s/7FmoCqJJNFw7acEaBrif/GIeasQPRVMh0qdm3RccZ1NXUpDDQ3YX1G pPJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2PISYLFJ; 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 j9si5514030edq.150.2021.09.16.20.53.03; Thu, 16 Sep 2021 20:53:27 -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=2PISYLFJ; 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 S1349044AbhIPRcy (ORCPT + 99 others); Thu, 16 Sep 2021 13:32:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:44396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348168AbhIPRYF (ORCPT ); Thu, 16 Sep 2021 13:24:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E39161BD4; Thu, 16 Sep 2021 16:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810627; bh=XhIq0jyiZSNH1/9jtJS0FOQJIeZko4IRVlklc+AJ/bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2PISYLFJk9G/CvosVRijbNnbCt2sfPc/wZAk8XP6mMCG1ZuFP1eaunXErvM5zY6SR NXc5Gn9Cd/aCr/tSvGoEjyqReVWf6S0B9btHnAH11sguHZOuEuaqNfmbZZ1Y0HaR37 YIytie4L/oslyC8sjjDPje7mBhjnYtSiSc7IwyCE= 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.14 211/432] nfp: fix return statement in nfp_net_parse_meta() Date: Thu, 16 Sep 2021 17:59:20 +0200 Message-Id: <20210916155817.983778289@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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 5dfa4799c34f..ed2ade2a4f04 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