Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp445953pxb; Thu, 9 Sep 2021 04:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkwAwRPGxBd4Z/Dt3AhzzXTFO5Yof7o08V68SvUzibsjSHePyqJsxLApewxDQczq/sW9Ve X-Received: by 2002:a92:d102:: with SMTP id a2mr1964881ilb.162.1631188025447; Thu, 09 Sep 2021 04:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188025; cv=none; d=google.com; s=arc-20160816; b=pgx1yPTIMx5qTsV5y70+hIF69EJO73cKotQhRBcnH0ttKIpnXB3ZFN6kSRPzPMpRiS ITOEMbULLwT1Qcy+yGm+SiKrtfNBHVxaZt5nVx/vWxCLintW8bmCKyQfrPzHELL2n6RP MCByT8nZfISsqKOuKqvuakwJdEvPuPpVUheFvtCqdsb3XNvjHu4UkSVovqdwmFoBWow4 fBv2kxJ9ixHLBV2SLjYsmnRJW0rDhoQXa95VbBTYzOTbI7iJ2WG1SzdogTgJwgER8PCJ Bzr+eZZiM9Mo8Ol1DZnTvQcjYoV9dlBZ5dmEdCC9AnkSvYBBbpvaXenknjEfVuJtk65A 14qQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4VMS7RYdEL/ArJu+xKfL087LejytNCsW+DUs9rp5ekk=; b=IdXOk43VSvUOCNnEDLmR27jCNV5YmOtuKJocbtCVVzU6Jx9KS9C3NZvQjCZRw1p9u7 np6r7azBoAMg/SvObG2TCbcQFySoy8leyyTHRBl7NH2W87Aaef7K3lXvceDqNtXGSVYp 4skMwY4/DCJQvG/tMtlucbncV0enxJG3dRROLUQ3Z0Zq4HwSHUjL19Mo+NfpMn5wWu4S SbYd4jJbmrQVafa0HOrXUy6gwSoRIw3Nz3r+a0KKY0pa7i1FhS+RANZbKiQM12nG56FB +Yq0VXPULcWufwy+nufc0TcSAnELtlu6mDjL6rMSCO2T7W3Gl/sJ519kej3/CH/PhalU 6eaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cOvna9bA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si1431903iow.31.2021.09.09.04.46.52; Thu, 09 Sep 2021 04:47:05 -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=@kernel.org header.s=k20201202 header.b=cOvna9bA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239907AbhIILqI (ORCPT + 99 others); Thu, 9 Sep 2021 07:46:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:46894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239067AbhIILoB (ORCPT ); Thu, 9 Sep 2021 07:44:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B43EC6121F; Thu, 9 Sep 2021 11:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187739; bh=XhIq0jyiZSNH1/9jtJS0FOQJIeZko4IRVlklc+AJ/bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cOvna9bAEBHW6si2fk/sBCbeY4M2frHbmAvAKwy1lpKI1NmJw/qI9WMSKEUpyM6BV yTOwakuINGrlrpPfuHQQacYFMkPd3YUEGxyh4qiIebbOAlFx8F1cpm0qhohEDjTtIp qKQpBwVlx3Em2NtvzdNubdXFjrXPOKlNiLoGRYrQNIcF7RusKADLe5LDGJ15GoAfQv 8o6bz8Cssxg3+qqQOmozWDxH+mvKBXjJLvUxhKUlUHmu5llt7hUrOnp7d8GLJdqYeM j7vnSuhCQTCTB1K+TPY35UcWs2UhWdG15Dr7xrpVO9OdSO8/l0uL5U9cO2xCRBSNve 8Q8Otzev6LhRw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Louis Peens , Simon Horman , "David S . Miller" , Sasha Levin , oss-drivers@corigine.com, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 057/252] nfp: fix return statement in nfp_net_parse_meta() Date: Thu, 9 Sep 2021 07:37:51 -0400 Message-Id: <20210909114106.141462-57-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore 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