Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/mlx4: clean up a type issue

These functions returns type bool, not pointers, so return false instead
of NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/52d0814a-7287-4160-94b5-ac7939ac61c6@moroto.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dan Carpenter and committed by
Jakub Kicinski
bc758ade 707116b6

+2 -2
+2 -2
drivers/net/ethernet/mellanox/mlx4/mcg.c
··· 294 294 struct mlx4_promisc_qp *dqp, *tmp_dqp; 295 295 296 296 if (port < 1 || port > dev->caps.num_ports) 297 - return NULL; 297 + return false; 298 298 299 299 s_steer = &mlx4_priv(dev)->steer[port - 1]; 300 300 ··· 375 375 bool ret = false; 376 376 377 377 if (port < 1 || port > dev->caps.num_ports) 378 - return NULL; 378 + return false; 379 379 380 380 s_steer = &mlx4_priv(dev)->steer[port - 1]; 381 381