Drivers: hv: utils: Make use of the helper macro LIST_HEAD()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/hv/hv_utils_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hv/hv_utils_transport.c +1 -1
@@ -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) {
Signature · 1 line
2.25.1
Quoted 4 lines · Cai Huoqing
Replace "struct
list_headhead =LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code.Signed-off-by Cai Huoqing <[email protected]>
Applied to hyperv-fixes. Thanks.
Quoted 20 lines
--- drivers/hv/hv_utils_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hv/hv_utils_transport.c +1
-1@@ -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) {Signature · 1 line
2.25.1