[PATCH] staging: rtl8192u: use __le16_to_cpu instead of cast

Greg KH gregkh at linuxfoundation.org
Tue Mar 14 00:01:47 UTC 2017


On Sun, Mar 12, 2017 at 04:02:35PM -0600, Perry Hooker wrote:
> This patch fixes the following sparse warnings:
> drivers/staging/rtl8192u/r8192U_dm.c:2307:49: warning: cast from restricted __le16
> drivers/staging/rtl8192u/r8192U_dm.c:2308:44: warning: cast from restricted __le16
> drivers/staging/rtl8192u/r8192U_dm.c:2309:44: warning: cast from restricted __le16
> 
> Signed-off-by: Perry Hooker <perry.hooker at gmail.com>
> ---
>  drivers/staging/rtl8192u/r8192U_dm.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

This patch does not apply to my tree at all :(

Please rebase it against linux-next and try again.

thanks,

greg k-h


More information about the devel mailing list