mlx5: minor fixes (mainly avoidance of hidden casts)
There were many places where parameters which should be u8/u16 were integer type. Additionally, in 2 places, a check for a non-null pointer was added before dereferencing the pointer (this is actually a bug fix). Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9603b61de1
commit
f241e7497e
15 changed files with 19 additions and 22 deletions
|
@ -456,9 +456,6 @@ struct mlx5_eqe_cq_err {
|
|||
u8 syndrome;
|
||||
};
|
||||
|
||||
struct mlx5_eqe_dropped_packet {
|
||||
};
|
||||
|
||||
struct mlx5_eqe_port_state {
|
||||
u8 reserved0[8];
|
||||
u8 port;
|
||||
|
@ -498,7 +495,6 @@ union ev_data {
|
|||
struct mlx5_eqe_comp comp;
|
||||
struct mlx5_eqe_qp_srq qp_srq;
|
||||
struct mlx5_eqe_cq_err cq_err;
|
||||
struct mlx5_eqe_dropped_packet dp;
|
||||
struct mlx5_eqe_port_state port;
|
||||
struct mlx5_eqe_gpio gpio;
|
||||
struct mlx5_eqe_congestion cong;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue