OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26291c5
)
tee: amdtee: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:27:43 +0000
(11:27 +0800)
committer
Jens Wiklander
<jens.wiklander@linaro.org>
Mon, 14 Feb 2022 09:57:55 +0000
(10:57 +0100)
Replace "struct list_head head = LIST_HEAD_INIT(head)" with
"LIST_HEAD(head)" to simplify the code.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Reviewed-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/amdtee/call.c
patch
|
blob
|
history
diff --git
a/drivers/tee/amdtee/call.c
b/drivers/tee/amdtee/call.c
index
07f36ac
..
cec6e70
100644
(file)
--- 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)
{