Re: [PATCH] bnx2fc: Simplify code

2016-09-09 Thread Martin K. Petersen
> "Christophe" == Christophe JAILLET writes: Christophe> Calling 'list_splice' followed by 'INIT_LIST_HEAD' is Christophe> equivalent to 'list_splice_init'. Applied to 4.9/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bnx2fc: Simplify code

2016-09-09 Thread Martin K. Petersen
> "Christophe" == Christophe JAILLET writes: Christophe> Calling 'list_splice' followed by 'INIT_LIST_HEAD' is Christophe> equivalent to 'list_splice_init'. Applied to 4.9/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] bnx2fc: Simplify code

2016-09-08 Thread Chad Dupuis
On Sat, 3 Sep 2016, 7:05am -, Christophe JAILLET wrote: > 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); > -

Re: [PATCH] bnx2fc: Simplify code

2016-09-08 Thread Chad Dupuis
On Sat, 3 Sep 2016, 7:05am -, Christophe JAILLET wrote: > 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); > -

[PATCH] bnx2fc: Simplify code

2016-09-03 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] bnx2fc: Simplify code

2016-09-03 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 ---