From: Dan Carpenter <dan.carpenter@oracle.com>
To: Carlos Palminha <CARLOS.PALMINHA@synopsys.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
gregkh@linuxfoundation.org
Subject: Re: [PATCH v2] staging: rtl8712: rtl8712: fix sparse warnings
Date: Wed, 8 Feb 2017 09:13:24 +0300 [thread overview]
Message-ID: <20170208061148.GH11154@mwanda> (raw)
In-Reply-To: <20170208012315.4164-1-palminha@synopsys.com>
On Wed, Feb 08, 2017 at 01:23:15AM +0000, Carlos Palminha wrote:
> Fixed sparse warnings
> * No need to convert from le32, pointers for structure with same endianness (cast from restricted __le32)
> * Need to convert bitwise operation for le32 structure (invalid assignment from int to __le32)
>
> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> ---
> Changes v1->v2:
> * Clarify patch description to ensure confidence
>
> drivers/staging/rtl8712/rtl8712_xmit.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/rtl8712_xmit.c b/drivers/staging/rtl8712/rtl8712_xmit.c
> index c4f03a602a2e..67713643c923 100644
> --- a/drivers/staging/rtl8712/rtl8712_xmit.c
> +++ b/drivers/staging/rtl8712/rtl8712_xmit.c
> @@ -561,19 +561,19 @@ static void update_txdesc(struct xmit_frame *pxmitframe, uint *pmem, int sz)
>
> ptxdesc_mp = &txdesc_mp;
> /* offset 8 */
> - ptxdesc->txdw2 = cpu_to_le32(ptxdesc_mp->txdw2);
> + ptxdesc->txdw2 = ptxdesc_mp->txdw2;
Nah... The original is done deliberately. When I'm reviewing this
patch I can see that now.
Just leave this as-is.
regards,
dan carpenter
prev parent reply other threads:[~2017-02-08 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-08 1:23 [PATCH v2] staging: rtl8712: rtl8712: fix sparse warnings Carlos Palminha
2017-02-08 6:13 ` 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=20170208061148.GH11154@mwanda \
--to=dan.carpenter@oracle.com \
--cc=CARLOS.PALMINHA@synopsys.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