forked from mirrors/linux
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>
This commit is contained in:
parent
98fa41d627
commit
d9e56d1839
1 changed files with 1 additions and 2 deletions
|
|
@ -890,8 +890,7 @@ 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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue