From nobody Sun Jun 28 10:34:19 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBA37C4332F for ; Wed, 9 Feb 2022 04:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348080AbiBIELS (ORCPT ); Tue, 8 Feb 2022 23:11:18 -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: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Replace "struct list_head head =3D LIST_HEAD_INIT(head)" with "LIST_HEAD(head)" to simplify the code. Signed-off-by: Cai Huoqing Reviewed-by: Rijo Thomas --- 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 *t= ee, u32 count, } =20 static DEFINE_MUTEX(ta_refcount_mutex); -static struct list_head ta_list =3D LIST_HEAD_INIT(ta_list); +static LIST_HEAD(ta_list); =20 static u32 get_ta_refcount(u32 ta_handle) { --=20 2.25.1