devlink: Remove duplicated registration check
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 28 Jul 2021 07:33:47 +0000 (10:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jul 2021 09:23:45 +0000 (10:23 +0100)
commitd7907a2b1a3b89bea136025f885035a083525e41
tree332d87f6016e62b5a3b051082767a026483999c1
parent35f6986743d78544779a892415c2edefa1f36a1c
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>
include/net/devlink.h
net/core/devlink.c