]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ice: cleanup VSI context initialization
authorJacob Keller <jacob.e.keller@intel.com>
Sat, 16 May 2020 00:42:23 +0000 (17:42 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 22:48:39 +0000 (15:48 -0700)
Remove an unnecessary copy of vsi->info into ctxt->info in ice_vsi_init.
This line is essentially a no-op because ice_set_dflt_vsi_ctx performs
a memset to clear the info from the context structure.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c

index 6f3ee8ac11cef774060466ee4c2aeb9362e5e1b4..89e8e4f7f56ffc12a7ca3c1d614fe584b27d9427 100644 (file)
@@ -938,7 +938,6 @@ static int ice_vsi_init(struct ice_vsi *vsi, bool init_vsi)
        if (!ctxt)
                return -ENOMEM;
 
-       ctxt->info = vsi->info;
        switch (vsi->type) {
        case ICE_VSI_CTRL:
        case ICE_VSI_LB: