Re: [PATCH] drivers: staging: rtl8723au: fix "warning: cast to restricted __le16"

From: Jes Sorensen
Date: Thu Apr 02 2015 - 06:18:09 EST


Dan Carpenter <dan.carpenter@xxxxxxxxxx> writes:
> This doesn't look right and it doesn't have a changelog explainly the
> weirdness.
>

... and the fix is as ugly as it gets!

If something like this is needed, creating a __le16 *ptr at the
beginnging of the function would be a lot better.

Jes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/