ipw2200: le*_add_cpu conversion
PATCH 3/10 ipw2200: le*_add_cpu conversion
From: Marcin Slusarz <[email protected]>
replace all:little_endian_variable = cpu_to_leX(leX_to_cpu(little_endian_variable) +
expression_in_cpu_byteorder); with: leX_add_cpu(&little_endian_variable, expression_in_cpu_byteorder);
generated with semantic patch
Signed-off-by Marcin Slusarz <[email protected]>
Cc Zhu Yi <[email protected]>
Cc John W. Linville <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/wireless/ipw2200.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/wireless/ipw2200.c renamed from drivers/net/wireless/ipw2200.c~ipw2200-le_add_cpu-conversion +1 -3
@@ -10326,9 +10326,7 @@ static int ipw_tx_skb(struct ipw_priv *p remaining_bytes, PCI_DMA_TODEVICE)); - tfd->u.data.num_chunks = -cpu_to_le32 (le32_to_cpu (tfd->u.data.num_chunks) + -1 ); +le32_add_cpu (&tfd->u.data.num_chunks,1 ); } }
_