summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorCai Huoqing <cai.huoqing@linux.dev>2022-02-09 04:22:51 +0100
committerWei Liu <wei.liu@kernel.org>2022-02-09 15:33:21 +0100
commitffc58bc4af9365d4eea72526bb3cf6a83615c673 (patch)
treef433715fa552b2b396e32996378bdf27ae3c12ac /drivers/hv
parentDrivers: hv: vmbus: Rework use of DMA_BIT_MASK(64) (diff)
downloadlinux-ffc58bc4af9365d4eea72526bb3cf6a83615c673.tar.xz
linux-ffc58bc4af9365d4eea72526bb3cf6a83615c673.zip
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>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/hv_utils_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv_utils_transport.c b/drivers/hv/hv_utils_transport.c
index eb2833d2b5d0..832885198643 100644
--- a/drivers/hv/hv_utils_transport.c
+++ b/drivers/hv/hv_utils_transport.c
@@ -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)
{