Commit d9e56d18 authored by Xu Wang's avatar Xu Wang Committed by David S. Miller

mctp: Remove redundant if statements

The 'if (dev)' statement already move into dev_{put , hold}, so remove
redundant if statements.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 98fa41d6
...@@ -890,7 +890,6 @@ int mctp_local_output(struct sock *sk, struct mctp_route *rt, ...@@ -890,7 +890,6 @@ int mctp_local_output(struct sock *sk, struct mctp_route *rt,
if (!ext_rt) if (!ext_rt)
mctp_route_release(rt); mctp_route_release(rt);
if (dev)
dev_put(dev); dev_put(dev);
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment