telephony: precendence issue

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

 



drivers/telephony/ixj.c +6834 ixj_selfprobe(67)
  6833                  case QTI_PHONEJACK:
  6834                          if (!j->dsp.low != 0x20) {
  6835                                  j->dsp.high = 0x80;
  6836                                  j->dsp.low = 0x20;

"!" has precedence over "!=" and since both 1 and 0 are not equal
to 0x20 the condition is always true.

I'm pretty sure the "!" is a stray and the test should be:
	if (j->dsp.low != 0x20) {
but I don't have the hardware to test this.

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux