net/mlx5: Unify and improve command interface
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / mlx5_core.h
index 2f86ec6..14242f1 100644 (file)
@@ -75,19 +75,6 @@ enum {
        MLX5_CMD_TIME, /* print command execution time */
 };
 
-static inline int mlx5_cmd_exec_check_status(struct mlx5_core_dev *dev, u32 *in,
-                                            int in_size, u32 *out,
-                                            int out_size)
-{
-       int err;
-
-       err = mlx5_cmd_exec(dev, in, in_size, out, out_size);
-       if (err)
-               return err;
-
-       return mlx5_cmd_status_to_err((struct mlx5_outbox_hdr *)out);
-}
-
 int mlx5_query_hca_caps(struct mlx5_core_dev *dev);
 int mlx5_query_board_id(struct mlx5_core_dev *dev);
 int mlx5_cmd_init_hca(struct mlx5_core_dev *dev);