i40e,igb,ixgbe: remove usless return statements
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 6 Mar 2014 05:28:12 +0000 (05:28 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 May 2014 12:28:46 +0000 (05:28 -0700)
Remove cases where useless bare return is left at end of function.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igbvf/ethtool.c

index e0e5c6a867b196e2ad4852c820c9b6147e0faf9c..c2587f5a501ed2bc139a07392efe8f9c9ed04b2d 100644 (file)
@@ -6836,7 +6836,6 @@ static void i40e_vsi_delete(struct i40e_vsi *vsi)
                return;
 
        i40e_aq_delete_element(&vsi->back->hw, vsi->seid, NULL);
-       return;
 }
 
 /**
@@ -7576,8 +7575,6 @@ void i40e_veb_release(struct i40e_veb *veb)
 
        i40e_aq_delete_element(&pf->hw, veb->seid, NULL);
        i40e_veb_clear(veb);
-
-       return;
 }
 
 /**
@@ -8058,7 +8055,6 @@ static void i40e_determine_queue_usage(struct i40e_pf *pf)
        }
 
        pf->queues_left = queues_left;
-       return;
 }
 
 /**
index 6f6bd3f018011a5bda9d51800e8008986bb4573e..8dbaa779848595b103c16b19e4cfc2e8b4159475 100644 (file)
@@ -693,7 +693,6 @@ static void i40evf_del_vlan(struct i40evf_adapter *adapter, u16 vlan)
                f->remove = true;
                adapter->aq_required |= I40EVF_FLAG_AQ_DEL_VLAN_FILTER;
        }
-       return;
 }
 
 /**
@@ -1232,8 +1231,6 @@ void i40evf_reset_interrupt_capability(struct i40evf_adapter *adapter)
        pci_disable_msix(adapter->pdev);
        kfree(adapter->msix_entries);
        adapter->msix_entries = NULL;
-
-       return;
 }
 
 /**
@@ -2158,7 +2155,6 @@ err:
                return; /* do not reschedule */
        }
        schedule_delayed_work(&adapter->init_task, HZ * 3);
-       return;
 }
 
 /**
index bfcda8a455f46cc99058faf1a8bd0c339e7300e2..0fbab80b052973c510c5d0a74cbcda7106b064cd 100644 (file)
@@ -2139,7 +2139,6 @@ void igb_set_fw_version(struct igb_adapter *adapter)
                }
                break;
        }
-       return;
 }
 
 /**
index f58170bae18b8323c2b7c12424707907ff4bc70d..7d4e8559e2e9d93524ced2c9fc3881b234101f9a 100644 (file)
@@ -119,7 +119,6 @@ static int igbvf_set_settings(struct net_device *netdev,
 static void igbvf_get_pauseparam(struct net_device *netdev,
                                  struct ethtool_pauseparam *pause)
 {
-       return;
 }
 
 static int igbvf_set_pauseparam(struct net_device *netdev,