net/mlx5e: Fix mlx5e_tx_reporter_create return value
authorAya Levin <ayal@mellanox.com>
Wed, 3 Jul 2019 06:16:52 +0000 (09:16 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 19:33:32 +0000 (12:33 -0700)
commit7f7cc235c2dfc2a9208a743492b80d6cdfee50a6
tree4da44e1f02e297058e5bbcbaec5e5101bbc6169c
parent8c7698d5caa7852bebae0cf7402b7d3a1f30423b
net/mlx5e: Fix mlx5e_tx_reporter_create return value

Return error when failing to create a reporter in devlink. Since
NET_DEVLINK mandatory to MLX5_CORE in Kconfig, returned pointer
can't be NULL and can only hold an error in bad path.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c