diff options
author | Roi Dayan <roid@mellanox.com> | 2019-02-27 09:58:26 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-03-01 12:04:15 -0800 |
commit | bb19ad0d8d493e20f6abe615c5e5d00daa9735d7 (patch) | |
tree | f40b18482ede50958271dd650fa58778c99abfb1 /drivers/net/ethernet | |
parent | 0ad060ee9c8fcf15aa9aa03965276a278247f87e (diff) | |
download | linux-stable-bb19ad0d8d493e20f6abe615c5e5d00daa9735d7.tar.gz linux-stable-bb19ad0d8d493e20f6abe615c5e5d00daa9735d7.tar.bz2 linux-stable-bb19ad0d8d493e20f6abe615c5e5d00daa9735d7.zip |
net/mlx5: Use unsigned int bit instead of bool as a struct member
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/lag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lag.c b/drivers/net/ethernet/mellanox/mlx5/core/lag.c index 04c5aca7f8c5..44ce4c36485f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lag.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lag.c @@ -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. |