Re: [PATCH] jfs: Simplify code

2016-09-06 Thread Dave Kleikamp
On 09/03/2016 12:35 AM, Christophe JAILLET wrote: > Calling 'list_splice' followed by 'INIT_LIST_HEAD' is equivalent to > 'list_splice_init'. Looks good. I'll push this upstream. > > This has been spotted with the following coccinelle script: > / > @@ > expression y,z; > @@ > > -

Re: [PATCH] jfs: Simplify code

2016-09-06 Thread Dave Kleikamp
On 09/03/2016 12:35 AM, Christophe JAILLET wrote: > Calling 'list_splice' followed by 'INIT_LIST_HEAD' is equivalent to > 'list_splice_init'. Looks good. I'll push this upstream. > > This has been spotted with the following coccinelle script: > / > @@ > expression y,z; > @@ > > -

[PATCH] jfs: Simplify code

2016-09-02 Thread Christophe JAILLET
Calling 'list_splice' followed by 'INIT_LIST_HEAD' is equivalent to 'list_splice_init'. This has been spotted with the following coccinelle script: / @@ expression y,z; @@ - list_splice(y,z); - INIT_LIST_HEAD(y); + list_splice_init(y,z); Signed-off-by: Christophe JAILLET

[PATCH] jfs: Simplify code

2016-09-02 Thread Christophe JAILLET
Calling 'list_splice' followed by 'INIT_LIST_HEAD' is equivalent to 'list_splice_init'. This has been spotted with the following coccinelle script: / @@ expression y,z; @@ - list_splice(y,z); - INIT_LIST_HEAD(y); + list_splice_init(y,z); Signed-off-by: Christophe JAILLET ---