Skip to contentSkip to conversation

nfp: fix return statement in nfp_net_parse_meta()

PATCH Applied Simon Horman 2 participants 2 messages Jul 22, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfp: fix return statement in nfp_net_parse_meta()

From: Niklas Söderlund <[email protected]>

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.

---
 drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/netronome/nfp/nfp_net_common.c +1 -1
index 5dfa4799c34f..ed2ade2a4f04 100644
@@ -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:
Signature · 1 line
2.20.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 11 lines · On Thu, 22 Jul 2021 13:25:02 +0200 you wrote:

From: Niklas Söderlund <[email protected]>

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.

[...]

Here is the summary with links:
- [net-next] nfp: fix return statement in nfp_net_parse_meta()

    https://git.kernel.org/netdev/net-next/c/4431531c482a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html