[PATCH] staging: rtl8192e: Change cpu_to_le16 to le16_to_cpu

2015-05-09 Thread Arno Tiemersma
Since the function auth_parse returns a u16, and struct rtllib_authentication.status is defined as an __le16, it seems that return cpu_to_le16(a->status); should be return le16_to_cpu(a->status); This change silences the following sparse warnings:

[PATCH] staging: rtl8192e: Change cpu_to_le16 to le16_to_cpu

2015-05-09 Thread Arno Tiemersma
Since the function auth_parse returns a u16, and struct rtllib_authentication.status is defined as an __le16, it seems that return cpu_to_le16(a-status); should be return le16_to_cpu(a-status); This change silences the following sparse warnings: