Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1639789pxb; Wed, 9 Feb 2022 00:52:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/SWMaoOuP/L6w7cSbCcD/SXSBt4fr2oBz+m9dG3Kx6PLKZWC0khvukiyFxDRvRH2ApBsH X-Received: by 2002:a17:902:b597:: with SMTP id a23mr1180656pls.170.1644396733811; Wed, 09 Feb 2022 00:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644396733; cv=none; d=google.com; s=arc-20160816; b=l2KjHvdvURkIidhQght0F1AmsvdsnWcBap9vyYtGn2uXv3bQ9VRIo8z5tso/5Wlcm2 Al3TKb4avW9wYlVlihuV2TQEhV7dBs8zpgzOjMaeef0cyE3a4FGYO+udCSJaDhD27Ehm yA7P5HuEypsuDfUm1c0QuKM7hEZLysrhsFaUNMrFF8hcb2JCm4KyVd45b6INI6ZcZW7i iEMTckH3BB1pb1GEib7Apcz13oMhE2wrizEjYGmCPTtTyONdXdGGVi80oLb1IA8f20KN 5sN6bOymnYa/5pnhs0jBXy9IWmTn0PW8xtA/ePhObj7U4xY+HOQi5y0d7xPo/TVYVmer oqVg== 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=GDCExg53kc/pHnmsDC2kZisurgtykX/e2jcjrzmkqmY=; b=L74pWUMsQwA2c2Fm8B+sWB4gE7B/Ntbv7mraiYU1UvCuO7J0LMJvcoQxKjSYsx4wJ2 zy2rvUM1xGiPIAxKa3/y2o0lWV2wyKRAvZKaCwRAa/4WmgjDRqoxk79kyqrojDMsgeie hAiCHhHWQBrS3yv4/UKx7a3wZsiwizZZIx+0wfA0oTH4yRpF7SN1eet+/Zm89nNmDQG7 COt0rpmBeqDDQpiMUXMZJ8qPm7XW+MvK9QnP3rO9A5ek7UF3NsNpHOuyqeuUulVWTXF+ 1yRFC1EzaFbq+GQ1JkNPcphjhC8E5j03PP9/hEdlJMU72qdInWReLxQtKSuKKYT17tnj fENw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=WYNjJYp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i3si15580002pgh.63.2022.02.09.00.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 00:52:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=WYNjJYp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 F2599DF28AF5; Wed, 9 Feb 2022 00:45:03 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347986AbiBIELO (ORCPT + 99 others); Tue, 8 Feb 2022 23:11:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346424AbiBID2Q (ORCPT ); Tue, 8 Feb 2022 22:28:16 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7958AC06174F for ; Tue, 8 Feb 2022 19:28:15 -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=1644377292; 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=GDCExg53kc/pHnmsDC2kZisurgtykX/e2jcjrzmkqmY=; b=WYNjJYp+G80Mo0gl59SFMkAqBA5GW/4eXFU/GA+47VFJm1m9pr0J/uZ5huP8LvvkX+stxa ETi6iU9C6Mj/dqPePKX0a/kzCkk/QmlKkD9kZqjDo8qMEBDf098agsFlT3CuhdApzfYDys rqK5PvzIW4ECHKiOrhSxA1oRtnWR6uk= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Jens Wiklander , Sumit Garg , Devaraj Rangasamy , Rijo Thomas , Dan Carpenter , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org Subject: [PATCH] tee: amdtee: Make use of the helper macro LIST_HEAD() Date: Wed, 9 Feb 2022 11:27:43 +0800 Message-Id: <20220209032745.38570-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/tee/amdtee/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/amdtee/call.c b/drivers/tee/amdtee/call.c index 07f36ac834c8..cec6e70f0ac9 100644 --- a/drivers/tee/amdtee/call.c +++ b/drivers/tee/amdtee/call.c @@ -122,7 +122,7 @@ static int amd_params_to_tee_params(struct tee_param *tee, u32 count, } static DEFINE_MUTEX(ta_refcount_mutex); -static struct list_head ta_list = LIST_HEAD_INIT(ta_list); +static LIST_HEAD(ta_list); static u32 get_ta_refcount(u32 ta_handle) { -- 2.25.1