diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-11-21 14:55:42 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-23 05:41:47 +0100 |
commit | d95fa75061fbd09a7ae78a76bc8902a84b8538a5 (patch) | |
tree | 510c07d1482deffcf85ee3bba843daf54414c5fc /net/dsa/devlink.h | |
parent | net: dsa: move bulk of devlink code to devlink.{c,h} (diff) | |
download | linux-d95fa75061fbd09a7ae78a76bc8902a84b8538a5.tar.xz linux-d95fa75061fbd09a7ae78a76bc8902a84b8538a5.zip |
net: dsa: if ds->setup is true, ds->devlink is always non-NULL
Simplify dsa_switch_teardown() to remove the NULL checking for
ds->devlink.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/devlink.h')
0 files changed, 0 insertions, 0 deletions