devlink: Remove check of always valid devlink pointer
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 14 Aug 2021 09:57:27 +0000 (12:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Aug 2021 12:59:10 +0000 (13:59 +0100)
commit7ca973dc9fe589dc0ab2650641f4c7a19cc49ecd
tree19684b13152c49475f323ebfd210d2351332722e
parentcbf6ab672eb425ac1cd7f8c7c4066f3bb0a78e50
devlink: Remove check of always valid devlink pointer

Devlink objects are accessible only after they were registered and
have valid devlink_*->devlink pointers.

Remove that check and simplify respective fill functions as an outcome
of such change.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c