net/mlx5: fix device arguments error detection