mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
nfp: fix return statement in nfp_net_parse_meta()
[ Upstream commit 4431531c48
]
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 <niklas.soderlund@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
23e5fb6475
commit
52bb703f71
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue