Skip to content

Commit ffc58bc

Browse files
caihuoqliuw
authored andcommitted
Drivers: hv: utils: 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 <cai.huoqing@linux.dev> Link: https://lore.kernel.org/r/20220209032251.37362-1-cai.huoqing@linux.dev Signed-off-by: Wei Liu <wei.liu@kernel.org>
1 parent 6bf625a commit ffc58bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hv/hv_utils_transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "hv_utils_transport.h"
1414

1515
static DEFINE_SPINLOCK(hvt_list_lock);
16-
static struct list_head hvt_list = LIST_HEAD_INIT(hvt_list);
16+
static LIST_HEAD(hvt_list);
1717

1818
static void hvt_reset(struct hvutil_transport *hvt)
1919
{

0 commit comments

Comments
 (0)