aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2008-02-12 18:06:12 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:37:15 -0500
commit5c05863d0346c025a712b57622efe7828b29758e (patch)
treeff1b1c6a98f781ff026178082f0ea8d2efdaf826 /drivers/net
parent19ae3a6a96859c0e64d9dd5d35515a6f23a9cad8 (diff)
ipw2200: le*_add_cpu conversion
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 <marcin.slusarz@gmail.com> Cc: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ipw2200.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index a56d9fc6354f..3d4b590046a8 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -10349,9 +10349,7 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
10349 remaining_bytes, 10349 remaining_bytes,
10350 PCI_DMA_TODEVICE)); 10350 PCI_DMA_TODEVICE));
10351 10351
10352 tfd->u.data.num_chunks = 10352 le32_add_cpu(&tfd->u.data.num_chunks, 1);
10353 cpu_to_le32(le32_to_cpu(tfd->u.data.num_chunks) +
10354 1);
10355 } 10353 }
10356 } 10354 }
10357 10355