scsi: bnx2i: Make use of the helper macro LIST_HEAD()
Subsystems (2)
PATCH 1/1 scsi: bnx2i: Make use of the helper macro LIST_HEAD()
Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code.
Signed-off-by Cai Huoqing <[email protected]>
--- drivers/scsi/bnx2i/bnx2i_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/bnx2i/bnx2i_init.c +1 -1
@@ -16,7 +16,7 @@#include "bnx2i.h" -static struct list_head adapter_list =LIST_HEAD_INIT (adapter_list); +static LIST_HEAD (adapter_list);static u32 adapter_count;#define DRV_MODULE_NAME "bnx2i"
Signature · 1 line
2.25.1