From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tpf1M0f0XzDq8f for ; Thu, 29 Dec 2016 03:52:54 +1100 (AEDT) From: Andreas Schwab To: Timur Tabi Cc: "Harisangam\, Sharvari \(S.\)" , "alsa-devel\@alsa-project.org" , Xiubo Li , Takashi Iwai , "linux-kernel\@vger.kernel.org" , Liam Girdwood , Jaroslav Kysela , Nicolin Chen , Mark Brown , "linuxppc-dev\@lists.ozlabs.org" Subject: Re: [PATCH] ASoC : fsl_ssi : Correct the condition to check AC97 mode References: <20161228110636.GA14768@ubuntu> <87inq4f6pa.fsf@linux-m68k.org> <9ebb798c-6040-9262-9625-ddcebd05a188__32955.7460187518$1482940206$gmane$org@tabi.org> Date: Wed, 28 Dec 2016 17:52:43 +0100 In-Reply-To: <9ebb798c-6040-9262-9625-ddcebd05a188__32955.7460187518$1482940206$gmane$org@tabi.org> (Timur Tabi's message of "Wed, 28 Dec 2016 09:48:42 -0600") Message-ID: <87eg0sf12c.fsf@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Dez 28 2016, Timur Tabi wrote: > Andreas Schwab wrote: >>> > + return !!(ssi_private->dai_fmt & SND_SOC_DAIFMT_AC97) == >>> > + SND_SOC_DAIFMT_AC97; >> This is never true. > > I think the right parenthesis should be at the end of the expression. That would still test the wrong bitfield. And all that is obsolete anyway since commit 5b64c173cd (of Sep 2015). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."