virtio_net: minor cleanup
[deliverable/linux.git] / drivers / net / virtio_net.c
index 23e4a69d92de57006b5b0a91583c58eefcd407e3..ef04d2394282d038abd5a55bda7ad296a300a3b9 100644 (file)
@@ -1403,7 +1403,7 @@ static void virtnet_config_changed_work(struct work_struct *work)
 
        if (virtio_cread_feature(vi->vdev, VIRTIO_NET_F_STATUS,
                                 struct virtio_net_config, status, &v) < 0)
-               goto done;
+               return;
 
        if (v & VIRTIO_NET_S_ANNOUNCE) {
                netdev_notify_peers(vi->dev);
@@ -1414,7 +1414,7 @@ static void virtnet_config_changed_work(struct work_struct *work)
        v &= VIRTIO_NET_S_LINK_UP;
 
        if (vi->status == v)
-               goto done;
+               return;
 
        vi->status = v;
 
@@ -1425,8 +1425,6 @@ static void virtnet_config_changed_work(struct work_struct *work)
                netif_carrier_off(vi->dev);
                netif_tx_stop_all_queues(vi->dev);
        }
-done:
-       return;
 }
 
 static void virtnet_config_changed(struct virtio_device *vdev)
This page took 0.034711 seconds and 5 git commands to generate.