net/mlx5: Use unsigned int bit instead of bool as a struct member
authorRoi Dayan <roid@mellanox.com>
Wed, 27 Feb 2019 07:58:26 +0000 (09:58 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:15 +0000 (12:04 -0800)
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>
drivers/net/ethernet/mellanox/mlx5/core/lag.c

index 04c5aca7f8c54e35bd5f12d15a89049c6caa2b50..44ce4c36485f50a207a933b29f0af8f161456f75 100644 (file)
@@ -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.