diff options
| author | 2021-03-31 14:17:03 -0700 | |
|---|---|---|
| committer | 2021-04-14 17:00:06 -0700 | |
| commit | 1cdea9a7eae3a976adc2735bc7ce62ac07cafcdb (patch) | |
| tree | fbf898d5992a3320a0ae51092c9e839cbf7d235a /drivers/net/ethernet/intel/ice/ice_controlq.h | |
| parent | ice: use local for consistency (diff) | |
| download | linux-dev-1cdea9a7eae3a976adc2735bc7ce62ac07cafcdb.tar.xz linux-dev-1cdea9a7eae3a976adc2735bc7ce62ac07cafcdb.zip  | |
ice: remove unused struct member
The only time you can ever have a rq_last_status is if
a firmware event was somehow reporting a status on the receive
queue, which are generally firmware initiated events or
mailbox messages from a VF.  Mostly this struct member was unused.
Fix this problem by still printing the value of the field in a debug
print, but don't store the value forever in a struct, potentially
creating opportunities for callers to use the wrong struct member.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to '')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_controlq.h | 1 | 
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_controlq.h b/drivers/net/ethernet/intel/ice/ice_controlq.h index 77c2307d4fb8..fe75871e48ca 100644 --- a/drivers/net/ethernet/intel/ice/ice_controlq.h +++ b/drivers/net/ethernet/intel/ice/ice_controlq.h @@ -83,7 +83,6 @@ struct ice_rq_event_info {  /* Control Queue information */  struct ice_ctl_q_info {  	enum ice_ctl_q qtype; -	enum ice_aq_err rq_last_status;	/* last status on receive queue */  	struct ice_ctl_q_ring rq;	/* receive queue */  	struct ice_ctl_q_ring sq;	/* send queue */  	u32 sq_cmd_timeout;		/* send queue cmd write back timeout */  | 
