net/mlx5: Always use container_of to find mdev pointer from clock struct
Clock struct is part of struct mlx5_core_dev. Code was inconsistent, on some cases used container_of and on another used clock->mdev. Align code to use container_of amd remove clock->mdev pointer. While here, fix reverse xmas tree coding style. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
This commit is contained in:

committed by
Saeed Mahameed

parent
ec529b44ab
commit
fb609b5112
@@ -643,7 +643,6 @@ struct mlx5_pps {
|
||||
};
|
||||
|
||||
struct mlx5_clock {
|
||||
struct mlx5_core_dev *mdev;
|
||||
struct mlx5_nb pps_nb;
|
||||
seqlock_t lock;
|
||||
struct cyclecounter cycles;
|
||||
|
Reference in New Issue
Block a user