diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2021-12-02 07:55:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-02 13:09:33 +0000 |
commit | d9e56d1839fa40dbaab640ec205390826bddf8ae (patch) | |
tree | 3a2dfdc6df13025445899e3a10e11227924a7011 /net/mctp | |
parent | 98fa41d627604e58c3e486d910ada04d90e67d33 (diff) |
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 'net/mctp')
-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; |