staging: rtl8723au: rtl8723a_hal_init: Improve code readability
authorJohannes Postma <jgmpostma@gmail.com>
Fri, 7 Aug 2015 13:04:34 +0000 (14:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Aug 2015 22:10:58 +0000 (15:10 -0700)
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>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c

index eb76ac4736305efd6837b47dd0f7e99c55f009c7..cf2388f4f6e75b9d047aaac669e8d8f6cbb0632a 100644 (file)
@@ -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);
 }