[Intel-wired-lan] [PATCH net-next 6/7] ice: Remove excess error variables

G, GurucharanX gurucharanx.g at intel.com
Fri Oct 29 08:42:31 UTC 2021



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Tony
> Nguyen
> Sent: Friday, October 8, 2021 3:31 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net-next 6/7] ice: Remove excess error
> variables
> 
> ice_status previously had a variable to contain these values where other error
> codes had a variable as well. With ice_status now being an int, there is no need
> for two variables to hold error values. In cases where this occurs, remove one
> of the excess variables and use a single one.
> Some initialization of variables are no longer needed and have been removed.
> 
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_common.c   |   9 +-
>  drivers/net/ethernet/intel/ice/ice_devlink.c  |  32 +++--
> drivers/net/ethernet/intel/ice/ice_ethtool.c  |  79 ++++++------
> .../net/ethernet/intel/ice/ice_ethtool_fdir.c |  44 +++----
>  .../net/ethernet/intel/ice/ice_fw_update.c    |  31 ++---
>  drivers/net/ethernet/intel/ice/ice_gnss.c     |  28 ++--
>  drivers/net/ethernet/intel/ice/ice_lib.c      |  66 +++++-----
>  drivers/net/ethernet/intel/ice/ice_main.c     | 120 ++++++++----------
>  drivers/net/ethernet/intel/ice/ice_ptp_hw.c   |   5 +-
>  drivers/net/ethernet/intel/ice/ice_tc_lib.c   |   9 +-
>  .../ethernet/intel/ice/ice_virtchnl_fdir.c    |  24 ++--
>  .../net/ethernet/intel/ice/ice_virtchnl_pf.c  |  44 +++----
>  12 files changed, 210 insertions(+), 281 deletions(-)
> 

Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker at Intel)


More information about the Intel-wired-lan mailing list