diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2021-07-28 10:33:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-28 10:23:45 +0100 |
commit | d7907a2b1a3b89bea136025f885035a083525e41 (patch) | |
tree | 332d87f6016e62b5a3b051082767a026483999c1 /include | |
parent | 35f6986743d78544779a892415c2edefa1f36a1c (diff) |
devlink: Remove duplicated registration check
Both registered flag and devlink pointer are set at the same time
and indicate the same thing - devlink/devlink_port are ready. Instead
of checking ->registered use devlink pointer as an indication.
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/devlink.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 57b738b78073..e48a62320407 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -55,8 +55,7 @@ struct devlink { * port, sb, dpipe, resource, params, region, traps and more. */ u8 reload_failed:1, - reload_enabled:1, - registered:1; + reload_enabled:1; char priv[0] __aligned(NETDEV_ALIGN); }; @@ -158,7 +157,6 @@ struct devlink_port { struct list_head region_list; struct devlink *devlink; unsigned int index; - bool registered; spinlock_t type_lock; /* Protects type and type_dev * pointer consistency. */ |