mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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>
This commit is contained in:
parent
6bf625a414
commit
ffc58bc4af
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
#include "hv_utils_transport.h"
|
||||
|
||||
static DEFINE_SPINLOCK(hvt_list_lock);
|
||||
static struct list_head hvt_list = LIST_HEAD_INIT(hvt_list);
|
||||
static LIST_HEAD(hvt_list);
|
||||
|
||||
static void hvt_reset(struct hvutil_transport *hvt)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue