From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752396AbbKBHBL (ORCPT ); Mon, 2 Nov 2015 02:01:11 -0500 Received: from smtp311.phy.lolipop.jp ([210.157.22.79]:42762 "EHLO smtp311.phy.lolipop.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604AbbKBHBI (ORCPT ); Mon, 2 Nov 2015 02:01:08 -0500 Subject: Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings To: Julia Lawall References: Cc: kbuild-all@01.org, Takashi Iwai , Clemens Ladisch , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org From: Takashi Sakamoto Message-ID: <56370A2B.6080402@sakamocchi.jp> Date: Mon, 2 Nov 2015 16:00:59 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Nov 02 2015 15:55, Julia Lawall wrote: > Move constant to the right of binary operators. > > Generated by: scripts/coccinelle/misc/compare_const_fl.cocci > > CC: Takashi Sakamoto > Signed-off-by: Fengguang Wu > Signed-off-by: Julia Lawall > --- > > Depends on personal taste, but the modified version does look a little > nicer to me, since one can better see the relationship between the fdf > and sfc fields. > > amdtp-am824.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/sound/firewire/amdtp-am824.c > +++ b/sound/firewire/amdtp-am824.c > @@ -36,7 +36,7 @@ int amdtp_am824_set_parameters(struct am > if (err < 0) > return err; > > - s->fdf = AMDTP_FDF_AM824 | s->sfc; > + s->fdf = s->sfc | AMDTP_FDF_AM824; > > /* > * In IEC 61883-6, one data block represents one event. In ALSA, one Could I request explainations about the advantage of this modification? I cannot imagine good reasons for this subtle changes... Regards Takashi Sakamoto