Skip to contentSkip to conversation

fix 'and' typo in eicons' AddInfo()

PATCH New Roel Kluin 1 participant 1 message Dec 17, 2007

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 fix 'and' typo in eicons' AddInfo()

I have previously sent this to [email protected] and its maintainer, but the error is still in linus' tree.
--
'!' has a higher priority than '&', so as was the bit test masks a binary.

---

drivers/isdn/hardware/eicon/message.c +1 -1
index ccd35d0..189b231 100644
@@ -9027,7 +9027,7 @@ static byte AddInfo(byte   **add_i,
    /* facility is a nested structure */
    /* FTY can be more than once      */
 
-  if(esc_chi[0] && !(esc_chi[esc_chi[0]])&0x7f )
+	if (esc_chi[0] && !(esc_chi[esc_chi[0]] & 0x7f))
   {
     add_i[0] = (byte   *)"\x02\x02\x00"; /* use neither b nor d channel */
   }