Re: &&//|| typo ?

From: Takashi Iwai
Date: Tue Feb 17 2009 - 02:04:31 EST


At Mon, 16 Feb 2009 22:35:54 +0100,
Jörg-Volker Peetz wrote:
>
> Hi,
>
> inspired by the mail http://lkml.org/lkml/2009/2/15/159
> I did
>
> grep -Ern '\!=.*\|\|.*\!=' linux-2.6.28.5
>
> and found the following tests which are always true if the tested variable is
> not NaN:
>
> linux-2.6.28.5/sound/pci/au88x0/au88x0_core.c:2792: if ((bits != 8) || (bits != 16))
>
> linux-2.6.28.5/sound/oss/ad1848.c:283: if ( (devc->model != MD_1845) ||
> (devc->model != MD_1845_SSCAPE))
> linux-2.6.28.5/sound/oss/ad1848.c:2110: if (devc->model != MD_1845 ||
> devc->model != MD_1845_SSCAPE)

I fixed above three on sound git tree now.

Thanks!

Takashi
--
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/