Commit 393c8019 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Martin K. Petersen

scsi: bnx2fc: Simplify code

Calling 'list_splice' followed by 'INIT_LIST_HEAD' is equivalent to

This has been spotted with the following coccinelle script:
expression y,z;

-   list_splice(y,z);
+   list_splice_init(y,z);
Signed-off-by: default avatarChristophe JAILLET <[email protected]>
Acked-by: default avatarChad Dupuis <[email protected]>
Signed-off-by: Martin K. Petersen's avatarMartin K. Petersen <[email protected]>
parent 15177052
......@@ -2765,8 +2765,7 @@ static void __exit bnx2fc_mod_exit(void)
* held.
list_splice(&adapter_list, &to_be_deleted);
list_splice_init(&adapter_list, &to_be_deleted);
adapter_count = 0;
Markdown is supported
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