Skip to contentSkip to conversation

isdn/hisax: hex vs decimal typo in prfeatureind()

PATCH Applied Dan Carpenter 2 participants 2 messages Feb 6, 2014 – Feb 7, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isdn/hisax: hex vs decimal typo in prfeatureind()

This is a static checker fix, but judging from the context then I think hexidecimal 0x80 is intended here instead of decimal 80.

---
Untested.

drivers/isdn/hisax/q931.c +1 -1
index af1b020a81f1..b420f8bd862e 100644
@@ -810,7 +810,7 @@ prfeatureind(char *dest, u_char *p)
 	dp += sprintf(dp, "    octet 3  ");
 	dp += prbits(dp, *p, 8, 8);
 	*dp++ = '\n';
-	if (!(*p++ & 80)) {
+	if (!(*p++ & 0x80)) {
 		dp += sprintf(dp, "    octet 4  ");
 		dp += prbits(dp, *p++, 8, 8);
 		*dp++ = '\n';