RDMA/bnxt_re: Make use of the helper macro LIST_HEAD()
Subsystems (2)
PATCH 1/1 RDMA/bnxt_re: 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/infiniband/hw/bnxt_re/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/bnxt_re/main.c +1 -1
@@ -74,7 +74,7 @@ MODULE_DESCRIPTION(BNXT_RE_DESC " Driver");MODULE_LICENSE ("Dual BSD/GPL" );/* globals */ -static struct list_head bnxt_re_dev_list =LIST_HEAD_INIT (bnxt_re_dev_list); +static LIST_HEAD (bnxt_re_dev_list);/* Mutex to protect the list of bnxt_re devices added */ static DEFINE_MUTEX (bnxt_re_dev_lock);static struct workqueue_struct *bnxt_re_wq;
Signature · 1 line
2.25.1