* [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
@ 2015-11-02 6:55 Julia Lawall
2015-11-02 7:00 ` Takashi Sakamoto
0 siblings, 1 reply; 7+ messages in thread
From: Julia Lawall @ 2015-11-02 6:55 UTC (permalink / raw)
To: Takashi Sakamoto
Cc: kbuild-all, Takashi Iwai, Clemens Ladisch, Jaroslav Kysela,
alsa-devel, linux-kernel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
2015-11-02 6:55 [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings Julia Lawall
@ 2015-11-02 7:00 ` Takashi Sakamoto
0 siblings, 0 replies; 7+ messages in thread
From: Takashi Sakamoto @ 2015-11-02 7:00 UTC (permalink / raw)
To: Julia Lawall
Cc: kbuild-all, Takashi Iwai, Clemens Ladisch, Jaroslav Kysela,
alsa-devel, linux-kernel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
@ 2015-11-02 7:00 ` Takashi Sakamoto
0 siblings, 0 replies; 7+ messages in thread
From: Takashi Sakamoto @ 2015-11-02 7:00 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Takashi Iwai, Clemens Ladisch, linux-kernel, kbuild-all
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
2015-11-02 7:00 ` Takashi Sakamoto
(?)
@ 2015-11-02 7:20 ` Julia Lawall
2015-11-02 9:10 ` Takashi Sakamoto
-1 siblings, 1 reply; 7+ messages in thread
From: Julia Lawall @ 2015-11-02 7:20 UTC (permalink / raw)
To: Takashi Sakamoto
Cc: Julia Lawall, kbuild-all, Takashi Iwai, Clemens Ladisch,
Jaroslav Kysela, alsa-devel, linux-kernel
On Mon, 2 Nov 2015, Takashi Sakamoto wrote:
> 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...
I put the reason under the --- (better see the relationship between fdf
and sfc). But if you think the code makes more sense as it is, just
ignore the patch.
julia
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
2015-11-02 7:20 ` Julia Lawall
@ 2015-11-02 9:10 ` Takashi Sakamoto
2015-11-02 9:16 ` Julia Lawall
0 siblings, 1 reply; 7+ messages in thread
From: Takashi Sakamoto @ 2015-11-02 9:10 UTC (permalink / raw)
To: Julia Lawall
Cc: kbuild-all, Takashi Iwai, Clemens Ladisch, Jaroslav Kysela,
alsa-devel, linux-kernel
Hi Julia,
On Nov 02 2015 16:20, Julia Lawall wrote:
> On Mon, 2 Nov 2015, Takashi Sakamoto wrote:
>
>> 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...
>
> I put the reason under the --- (better see the relationship between fdf
> and sfc). But if you think the code makes more sense as it is, just
> ignore the patch.
Mmm. I'm sorry but I'm not wiling to add 'Reviewed-by' tag to this patch
because the reason is non-functional and personal.
Thanks
Takashi Sakamoto
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
2015-11-02 9:10 ` Takashi Sakamoto
@ 2015-11-02 9:16 ` Julia Lawall
0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2015-11-02 9:16 UTC (permalink / raw)
To: Takashi Sakamoto
Cc: kbuild-all, Takashi Iwai, Clemens Ladisch, Jaroslav Kysela,
alsa-devel, linux-kernel
On Mon, 2 Nov 2015, Takashi Sakamoto wrote:
> Hi Julia,
>
> On Nov 02 2015 16:20, Julia Lawall wrote:
> > On Mon, 2 Nov 2015, Takashi Sakamoto wrote:
> >
> > > 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...
> >
> > I put the reason under the --- (better see the relationship between fdf
> > and sfc). But if you think the code makes more sense as it is, just
> > ignore the patch.
>
> Mmm. I'm sorry but I'm not wiling to add 'Reviewed-by' tag to this patch
> because the reason is non-functional and personal.
OK, no problem.
julia
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings
@ 2015-11-02 9:16 ` Julia Lawall
0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2015-11-02 9:16 UTC (permalink / raw)
To: Takashi Sakamoto
Cc: alsa-devel, Takashi Iwai, Clemens Ladisch, linux-kernel, kbuild-all
On Mon, 2 Nov 2015, Takashi Sakamoto wrote:
> Hi Julia,
>
> On Nov 02 2015 16:20, Julia Lawall wrote:
> > On Mon, 2 Nov 2015, Takashi Sakamoto wrote:
> >
> > > 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...
> >
> > I put the reason under the --- (better see the relationship between fdf
> > and sfc). But if you think the code makes more sense as it is, just
> > ignore the patch.
>
> Mmm. I'm sorry but I'm not wiling to add 'Reviewed-by' tag to this patch
> because the reason is non-functional and personal.
OK, no problem.
julia
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-11-02 9:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-02 6:55 [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings Julia Lawall
2015-11-02 7:00 ` Takashi Sakamoto
2015-11-02 7:00 ` Takashi Sakamoto
2015-11-02 7:20 ` Julia Lawall
2015-11-02 9:10 ` Takashi Sakamoto
2015-11-02 9:16 ` Julia Lawall
2015-11-02 9:16 ` Julia Lawall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.