[patch] clean up. signed => unsigned

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

--- 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);
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux