Skip to content
Commit 240c5185 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Dave Kleikamp
Browse files

jfs: Simplify code



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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent 7cfcd8b7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment