All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org,
	Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Subject: Re: [PATCH] Bluetooth: remove __le16_to_cpu() from u8 var
Date: Mon, 18 Mar 2013 15:41:02 -0300	[thread overview]
Message-ID: <20130318184102.GD3072@joana> (raw)
In-Reply-To: <040583C3-DDAC-42A8-BAEC-43E5791147B6@holtmann.org>

Hi Marcel,

* Marcel Holtmann <marcel@holtmann.org> [2013-03-18 11:26:59 -0700]:

> Hi Gustavo,
> 
> > We don't any endianness conversion in a single byte variable.
> > 
> > Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> > ---
> > net/bluetooth/hci_event.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
> > index 8a1f511..1385807 100644
> > --- a/net/bluetooth/hci_event.c
> > +++ b/net/bluetooth/hci_event.c
> > @@ -641,7 +641,7 @@ static void hci_cc_read_page_scan_type(struct hci_dev *hdev,
> > 	BT_DBG("%s status 0x%2.2x", hdev->name, rp->status);
> > 
> > 	if (test_bit(HCI_INIT, &hdev->flags) && !rp->status)
> > -		hdev->page_scan_type = __le16_to_cpu(rp->type);
> > +		hdev->page_scan_type = rp->type;
> > }
> 
> we could also just fix up the patch with this mistake. Since it has not gotten into wireless-next yet.

Yes, the broken patch is now fixed in bluetooth-next.

	Gustavo

      reply	other threads:[~2013-03-18 18:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-18 17:52 [PATCH] Bluetooth: remove __le16_to_cpu() from u8 var Gustavo Padovan
2013-03-18 18:26 ` Marcel Holtmann
2013-03-18 18:41   ` Gustavo Padovan [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=20130318184102.GD3072@joana \
    --to=gustavo@padovan.org \
    --cc=gustavo.padovan@collabora.co.uk \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.