Re: suspect & tests

From: Clemens Ladisch
Date: Tue Dec 15 2009 - 08:11:41 EST


Joe Perches wrote:
> A grep for possibly misused & tests
> grep -rP --include=*.[ch] -n -e "[^\&]\&[\=]*\s*\!" *
> shows some possible cases where && should
> have been used instead:
> ...
> sound/soc/codecs/stac9766.c:233: vra &= !0x04;

This looks like ~ should have been used.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/