diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-09-03 09:05:48 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-09 13:08:30 +0200 |
commit | 393c8019e9ce1884f232e2d37761c61796e22095 (patch) | |
tree | 7d4049e69f0d132f195c21c61f5e05df5cf5f505 /drivers/scsi/aacraid | |
parent | scsi: ufs: Add missing header dependencies for tc-dwc-g210 (diff) | |
download | linux-393c8019e9ce1884f232e2d37761c61796e22095.tar.xz linux-393c8019e9ce1884f232e2d37761c61796e22095.zip |
scsi: bnx2fc: 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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aacraid')
0 files changed, 0 insertions, 0 deletions