fm10k: Resolve compile warnings with W=1
Fix two cases where variables are being set but not used. Signed-off-by: Matthew Vick <matthew.vick@intel.com> Tested-by: Krishneil Singh<Krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
33a44c2873
commit
f4a80f1ef7
|
@ -1194,12 +1194,11 @@ static s32 fm10k_mbx_process_disconnect(struct fm10k_hw *hw,
|
||||||
{
|
{
|
||||||
const enum fm10k_mbx_state state = mbx->state;
|
const enum fm10k_mbx_state state = mbx->state;
|
||||||
const u32 *hdr = &mbx->mbx_hdr;
|
const u32 *hdr = &mbx->mbx_hdr;
|
||||||
u16 head, tail;
|
u16 head;
|
||||||
s32 err;
|
s32 err;
|
||||||
|
|
||||||
/* we will need to pull all of the fields for verification */
|
/* we will need to pull the header field for verification */
|
||||||
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
|
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
|
||||||
tail = FM10K_MSG_HDR_FIELD_GET(*hdr, TAIL);
|
|
||||||
|
|
||||||
/* We should not be receiving disconnect if Rx is incomplete */
|
/* We should not be receiving disconnect if Rx is incomplete */
|
||||||
if (mbx->pushed)
|
if (mbx->pushed)
|
||||||
|
|
|
@ -57,7 +57,6 @@ void fm10k_ts_tx_enqueue(struct fm10k_intfc *interface, struct sk_buff *skb)
|
||||||
struct sk_buff_head *list = &interface->ts_tx_skb_queue;
|
struct sk_buff_head *list = &interface->ts_tx_skb_queue;
|
||||||
struct sk_buff *clone;
|
struct sk_buff *clone;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
__le16 dglort;
|
|
||||||
|
|
||||||
/* create clone for us to return on the Tx path */
|
/* create clone for us to return on the Tx path */
|
||||||
clone = skb_clone_sk(skb);
|
clone = skb_clone_sk(skb);
|
||||||
|
@ -65,8 +64,6 @@ void fm10k_ts_tx_enqueue(struct fm10k_intfc *interface, struct sk_buff *skb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FM10K_CB(clone)->ts_tx_timeout = jiffies + FM10K_TS_TX_TIMEOUT;
|
FM10K_CB(clone)->ts_tx_timeout = jiffies + FM10K_TS_TX_TIMEOUT;
|
||||||
dglort = FM10K_CB(clone)->fi.w.dglort;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&list->lock, flags);
|
spin_lock_irqsave(&list->lock, flags);
|
||||||
|
|
||||||
/* attempt to locate any buffers with the same dglort,
|
/* attempt to locate any buffers with the same dglort,
|
||||||
|
|
Loading…
Reference in New Issue