From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751978AbcL1Qww (ORCPT ); Wed, 28 Dec 2016 11:52:52 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:53345 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbcL1Qwv (ORCPT ); Wed, 28 Dec 2016 11:52:51 -0500 X-Auth-Info: ewhoEFQRMDfpJB2CwfythEVfqRl7pXyW3eAIrKDBjufKLFJTEzWRosGh71AgOBod 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> X-Yow: I'm having a tax-deductible experience! I need an energy crunch!! 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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."