Commit 98fa41d6 authored by vulab's avatar vulab Committed by David S. Miller
Browse files

net: openvswitch: 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 0c478946
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -137,7 +137,6 @@ 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);
	ovs_vport_free(vport);
}