Skip to contentSkip to conversation

clean up. signed => unsigned

PATCH New Dan Carpenter 1 participant 1 message Dec 8, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clean up. signed => unsigned

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.

drivers/bluetooth/hci_bcsp.c +1 -1
@@ -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);
 }