diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2021-12-02 08:55:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-02 14:09:33 +0100 |
commit | d9e56d1839fa40dbaab640ec205390826bddf8ae (patch) | |
tree | 3a2dfdc6df13025445899e3a10e11227924a7011 /net/mctp/route.c | |
parent | net: openvswitch: Remove redundant if statements (diff) | |
download | linux-d9e56d1839fa40dbaab640ec205390826bddf8ae.tar.xz linux-d9e56d1839fa40dbaab640ec205390826bddf8ae.zip |
mctp: Remove redundant if statements
The 'if (dev)' statement already move into dev_{put , hold}, so remove
redundant if statements.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/mctp/route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mctp/route.c b/net/mctp/route.c index 8d759b48f747..976a2b754701 100644 --- a/net/mctp/route.c +++ b/net/mctp/route.c @@ -890,8 +890,7 @@ out_release: if (!ext_rt) mctp_route_release(rt); - if (dev) - dev_put(dev); + dev_put(dev); return rc; |