From: Dan Carpenter <error27@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: [patch] clean up. signed => unsigned
Date: Tue, 8 Dec 2009 17:58:49 +0200 [thread overview]
Message-ID: <20091208155849.GA28661@bicker> (raw)
This is just a clean up to please static checkers. It does not
change how the kernel runs.
0xc0 is 192 and pkt_delim is a signed char so the max it can be is
127. I have made it unsigned.
Signed-off-by: Dan Carpenter <error27@gmail.com>
--- orig/drivers/bluetooth/hci_bcsp.c 2009-12-08 16:37:28.000000000 +0200
+++ devel/drivers/bluetooth/hci_bcsp.c 2009-12-08 16:37:39.000000000 +0200
@@ -125,7 +125,7 @@ static void bcsp_crc_update(u16 *crc, u8
static void bcsp_slip_msgdelim(struct sk_buff *skb)
{
- const char pkt_delim = 0xc0;
+ const unsigned char pkt_delim = 0xc0;
memcpy(skb_put(skb, 1), &pkt_delim, 1);
}
reply other threads:[~2009-12-08 15:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20091208155849.GA28661@bicker \
--to=error27@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).