From: Dan Carpenter <dan.carpenter@oracle.com>
To: Konrad Zapalowicz <bergo.torino@gmail.com>
Cc: Larry.Finger@lwfinger.net, devel@driverdev.osuosl.org,
gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging/rtl8723au fix sparse warning in os_initfs.c
Date: Thu, 15 May 2014 23:57:39 +0300 [thread overview]
Message-ID: <20140515205739.GE8897@mwanda> (raw)
In-Reply-To: <1400186614-5978-1-git-send-email-bergo.torino@gmail.com>
On Thu, May 15, 2014 at 10:43:34PM +0200, Konrad Zapalowicz wrote:
> This commit fixes the following sparse warning:
>
> drivers/staging/rtl8723au/os_dep/os_intfs.c:
> - 322:14: warning: restricted __be16 degrades to integer
>
> Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
> ---
> drivers/staging/rtl8723au/os_dep/os_intfs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723au/os_dep/os_intfs.c b/drivers/staging/rtl8723au/os_dep/os_intfs.c
> index 57eca7a..31a70af 100644
> --- a/drivers/staging/rtl8723au/os_dep/os_intfs.c
> +++ b/drivers/staging/rtl8723au/os_dep/os_intfs.c
> @@ -319,7 +319,7 @@ u16 rtw_recv_select_queue23a(struct sk_buff *skb)
>
> memcpy(ð_type, pdata + (ETH_ALEN << 1), 2);
> switch (eth_type) {
> - case htons(ETH_P_IP):
> + case be16_to_cpu(htons(ETH_P_IP)):
You should be more careful. This would have just made the code buggy.
Anyway someone already cleaned up this code. You should be working
against linux-next.
regards,
dan carpenter
prev parent reply other threads:[~2014-05-15 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 20:43 [PATCH] staging/rtl8723au fix sparse warning in os_initfs.c Konrad Zapalowicz
2014-05-15 20:57 ` Dan Carpenter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140515205739.GE8897@mwanda \
--to=dan.carpenter@oracle.com \
--cc=Larry.Finger@lwfinger.net \
--cc=bergo.torino@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox