Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1260419

Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings

From Takashi Sakamoto <o-takashi@sakamocchi.jp>
Newsgroups linux.kernel
Subject Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
Date 2015-11-02 08:10 +0100
Message-ID <qqhpD-2lR-5@gated-at.bofh.it> (permalink)
References <qqhfY-23j-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <o-takashi@sakamocchi.jp>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings Julia Lawall <julia.lawall@lip6.fr> - 2015-11-02 08:00 +0100
  Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings Takashi Sakamoto <o-takashi@sakamocchi.jp> - 2015-11-02 08:10 +0100
    Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci  warnings Julia Lawall <julia.lawall@lip6.fr> - 2015-11-02 08:30 +0100
      Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci  warnings Julia Lawall <julia.lawall@lip6.fr> - 2015-11-02 10:20 +0100
      Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings Takashi Sakamoto <o-takashi@sakamocchi.jp> - 2015-11-02 10:20 +0100

csiph-web