From: Cai Huoqing Date: Wed, 9 Feb 2022 03:27:43 +0000 (+0800) Subject: tee: amdtee: Make use of the helper macro LIST_HEAD() X-Git-Tag: howlett/maple/20220722_2~948^2~17^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f7b67642dd98617dc569836cdcba041c7ff00cbb;p=users%2Fjedix%2Flinux-maple.git tee: amdtee: 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 Reviewed-by: Rijo Thomas Signed-off-by: Jens Wiklander --- diff --git a/drivers/tee/amdtee/call.c b/drivers/tee/amdtee/call.c index 07f36ac834c88..cec6e70f0ac92 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) {