From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: [PATCH] ASoC : fsl_ssi : Correct the condition to check AC97 mode Date: Wed, 28 Dec 2016 17:52:43 +0100 Message-ID: <87eg0sf12c.fsf@linux-m68k.org> References: <20161228110636.GA14768@ubuntu> <87inq4f6pa.fsf@linux-m68k.org> <9ebb798c-6040-9262-9625-ddcebd05a188__32955.7460187518$1482940206$gmane$org@tabi.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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") Sender: linux-kernel-owner@vger.kernel.org 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" List-Id: alsa-devel@alsa-project.org 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."