public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Convert error codes to le16
Date: Fri, 09 Mar 2012 09:09:53 -0800	[thread overview]
Message-ID: <1331312993.14217.15.camel@aeonflux> (raw)
In-Reply-To: <1331302037-29095-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

Hi Andrei,

> Create Chan Rsp shall put result and status in le format.
> 
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
>  net/bluetooth/l2cap_core.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
> index 428e0b0..cf0b166 100644
> --- a/net/bluetooth/l2cap_core.c
> +++ b/net/bluetooth/l2cap_core.c
> @@ -3300,8 +3300,8 @@ static inline int l2cap_create_channel_req(struct l2cap_conn *conn,
>  	/* Placeholder: Always reject */
>  	rsp.dcid = 0;
>  	rsp.scid = cpu_to_le16(scid);
> -	rsp.result = L2CAP_CR_NO_MEM;
> -	rsp.status = L2CAP_CS_NO_INFO;
> +	rsp.result = cpu_to_le16(L2CAP_CR_NO_MEM);
> +	rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO);

you can use the __constant version of the macro here.

Regards

Marcel



      reply	other threads:[~2012-03-09 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09 14:07 [PATCH] Bluetooth: Convert error codes to le16 Andrei Emeltchenko
2012-03-09 17:09 ` Marcel Holtmann [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=1331312993.14217.15.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=Andrei.Emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@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