* [patch] clean up. signed => unsigned
@ 2009-12-08 15:58 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2009-12-08 15:58 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-08 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08 15:58 [patch] clean up. signed => unsigned Dan Carpenter
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).