net/mlx5e: vxlan: Return bool instead of opaque ptr in port_lookup()
authorSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 May 2020 00:11:29 +0000 (17:11 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 25 Jun 2020 19:41:46 +0000 (12:41 -0700)
commitefbb974d8ead5106787144219cb240fdcebccc16
treea21ff67117597a524a2e7f8bee1a04d9a3e15efb
parent7a64ca862ac96d5e78a59bd57549034134ee0949
net/mlx5e: vxlan: Return bool instead of opaque ptr in port_lookup()

struct mlx5_vxlan_port is not exposed to the outside callers, it is
redundant to return a pointer to it from mlx5_vxlan_port_lookup(), to be
only used as a boolean, so just return a boolean.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.h