Skip to content

Commit

Permalink
net/mlx5: Use unsigned int bit instead of bool as a struct member
Browse files Browse the repository at this point in the history
This fix checkpatch check
CHECK: Avoid using bool structure members because of possible alignment
issues

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
  • Loading branch information
Roi Dayan authored and Saeed Mahameed committed Mar 1, 2019
1 parent 0ad060e commit bb19ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/lag.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct lag_func {
struct lag_tracker {
enum netdev_lag_tx_type tx_type;
struct netdev_lag_lower_state_info netdev_state[MLX5_MAX_PORTS];
bool is_bonded;
unsigned int is_bonded:1;
};

/* LAG data of a ConnectX card.
Expand Down

0 comments on commit bb19ad0

Please sign in to comment.