Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1642407pxb; Wed, 9 Feb 2022 00:57:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJynWNZIznokBu0ed/wfwGlZlsgnAK4JdnG8OV9Cd9/7tCnsoAKyTLj5LlTNgvqBm30ynYOp X-Received: by 2002:a17:902:eb90:: with SMTP id q16mr1128794plg.9.1644397061041; Wed, 09 Feb 2022 00:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644397061; cv=none; d=google.com; s=arc-20160816; b=UM7sFreLmz74W+SRap1VAT0tpQpvMAi0hZaNw5QdPt3Wq61xbxNy4+95br+BkiyEyR qYpnSuVLR6vG5tWE9r0GHlb1yWbFstvb+sUfq0RQsPwsz2WbsQQiDm88iOH8BMBrEMAp /MSVrmXi93IHBuCgqBWb+KXxY9HCY8eDuX+QU/uaLzdWf28Hm1/UUTYsqmAWHJvTapMy C0LKpL+jGZ/MCXc3/+ptBzI7DR+XUUC2WhHtq7u/GiIqclZouU5o6ClROoQZw75WSJkN 86XMuPZ8qvYzmBRPDOmHTUil8wzJezVeG7DKN76IrDXbPkqQrC6NmUnfcRpqq0fPKj4u 0UXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Y8t74zSXdVdVEqvsmjbyK1jndX1+u445HuQ3KsiGyrE=; b=vnEgrvNYfKBNl537NY3oHqKITAPy7aBeUbL7pSS/M41oIX1y7csxsc1GBEvovGbiJf WPROPga4316GskJv92bQihw/tQmk5X0pnKtZeiqee2Q0Mh7BDOCpT2AcZmmE16Y6CJqW +U8/zcUds8Genr5RkZ1XppBiaYwSZG3Lj1ULB039meulJ+bJjIhT9sL2FD5oyqxeAXtx NygFkY3sOBovSzdr7n42qG+s9o3g3pUP5gE219OQkmrEELC9llyc6WGGu47iWcQXXteA mwVyli876QrGKsDMu1sNnY6T/Ho5Ahdrfxy//CC3cfQpRAfJcPUsLi2a+CfreqLYOMGb txEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wK3CEApa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t64si6308327pgd.755.2022.02.09.00.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 00:57:41 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wK3CEApa; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 879BDC004384; Wed, 9 Feb 2022 00:47:39 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbiBIEOG (ORCPT + 99 others); Tue, 8 Feb 2022 23:14:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346273AbiBIDXX (ORCPT ); Tue, 8 Feb 2022 22:23:23 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0257DC061576; Tue, 8 Feb 2022 19:23:23 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1644376998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Y8t74zSXdVdVEqvsmjbyK1jndX1+u445HuQ3KsiGyrE=; b=wK3CEApaLy3nGlQriQlv3vZpjrLb/IInbkvLnEqImOLPlX/zjErxQ0/vOW2nT2Ggv43Ray WwwgLOng4itLCuvHqrjq2h+FcuBigxX9xw0Pf2Ev49FOxFJoX1Sh4HnEihYBA31m/B1319 DO9Gs92N/WudhHOaNiyiNblIMnQJC5E= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Drivers: hv: utils: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:22:51 +0800 Message-Id: <20220209032251.37362-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace "struct list_head head = LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing --- drivers/hv/hv_utils_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1