Skip to content

Commit e65e9e1

Browse files
bwallanJeff Kirsher
authored andcommitted
ice: Resolve static analysis warning
Some static analysis tools can complain when doing a bitop assignment using operands of different sizes. Fix that. Signed-off-by: Bruce Allan <[email protected]> Signed-off-by: Anirudh Venkataramanan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 3171948 commit e65e9e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/intel/ice/ice_txrx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,10 +1874,10 @@ int ice_tso(struct ice_tx_buf *first, struct ice_tx_offload_params *off)
18741874
cd_mss = skb_shinfo(skb)->gso_size;
18751875

18761876
/* record cdesc_qw1 with TSO parameters */
1877-
off->cd_qw1 |= ICE_TX_DESC_DTYPE_CTX |
1878-
(ICE_TX_CTX_DESC_TSO << ICE_TXD_CTX_QW1_CMD_S) |
1879-
(cd_tso_len << ICE_TXD_CTX_QW1_TSO_LEN_S) |
1880-
(cd_mss << ICE_TXD_CTX_QW1_MSS_S);
1877+
off->cd_qw1 |= (u64)(ICE_TX_DESC_DTYPE_CTX |
1878+
(ICE_TX_CTX_DESC_TSO << ICE_TXD_CTX_QW1_CMD_S) |
1879+
(cd_tso_len << ICE_TXD_CTX_QW1_TSO_LEN_S) |
1880+
(cd_mss << ICE_TXD_CTX_QW1_MSS_S));
18811881
first->tx_flags |= ICE_TX_FLAGS_TSO;
18821882
return 1;
18831883
}

0 commit comments

Comments
 (0)