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:
Eran Ben Elisha 2020-05-13 11:06:47 +03:00 • committed by Saeed Mahameed
commit fb609b5112
2 changed files with 29 additions and 24 deletions