* [PATCH] staging: rtl8723au: rtl8723a_hal_init: Improve code readability
@ 2015-08-07 13:04 Johannes Postma
2015-08-07 13:35 ` Jes Sorensen
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Postma @ 2015-08-07 13:04 UTC (permalink / raw)
To: linux-kernel, devel, linux-wireless
Cc: Johannes Postma, Larry Finger, Jes Sorensen, Greg Kroah-Hartman
This patch improves code readability in the function
rtl8723a_cal_txdesc_chksum. It improves the readability of the argument
of the function le16_to_cpu.
Signed-off-by: Johannes Postma <jgmpostma@gmail.com>
---
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
index eb76ac4..cf2388f 100644
--- a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
+++ b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
@@ -1847,7 +1847,7 @@ static void rtl8723a_cal_txdesc_chksum(struct tx_desc *ptxdesc)
ptxdesc->txdw7 &= cpu_to_le32(0xffff0000);
for (index = 0; index < count; index++)
- checksum ^= le16_to_cpu(*(usPtr + index));
+ checksum ^= le16_to_cpu(usPtr[index]);
ptxdesc->txdw7 |= cpu_to_le32(checksum & 0x0000ffff);
}
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8723au: rtl8723a_hal_init: Improve code readability
2015-08-07 13:04 [PATCH] staging: rtl8723au: rtl8723a_hal_init: Improve code readability Johannes Postma
@ 2015-08-07 13:35 ` Jes Sorensen
0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2015-08-07 13:35 UTC (permalink / raw)
To: Johannes Postma
Cc: linux-kernel, devel, linux-wireless, Larry Finger, Greg Kroah-Hartman
Johannes Postma <jgmpostma@gmail.com> writes:
> This patch improves code readability in the function
> rtl8723a_cal_txdesc_chksum. It improves the readability of the argument
> of the function le16_to_cpu.
>
> Signed-off-by: Johannes Postma <jgmpostma@gmail.com>
> ---
> drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-07 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 13:04 [PATCH] staging: rtl8723au: rtl8723a_hal_init: Improve code readability Johannes Postma
2015-08-07 13:35 ` Jes Sorensen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.