mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: openvswitch: 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
0c4789460e
commit
98fa41d627
1 changed files with 1 additions and 2 deletions
|
@ -137,8 +137,7 @@ static void vport_netdev_free(struct rcu_head *rcu)
|
|||
{
|
||||
struct vport *vport = container_of(rcu, struct vport, rcu);
|
||||
|
||||
if (vport->dev)
|
||||
dev_put(vport->dev);
|
||||
dev_put(vport->dev);
|
||||
ovs_vport_free(vport);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue