diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-12-31 12:58:26 +0100 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-02-02 14:50:21 +0100 |
commit | fda90b29e27156db1923ac1f120935991f792560 (patch) | |
tree | a18810babf034ba5ce6341fd98d871b2cc7db445 /drivers/tee | |
parent | tee: fix some comment typos in header files (diff) | |
download | linux-fda90b29e27156db1923ac1f120935991f792560.tar.xz linux-fda90b29e27156db1923ac1f120935991f792560.zip |
drivers: optee: use flexible-array member instead of zero-length array
Use flexible-array member introduced in C99 instead of zero-length
array. Most of zero-length array was already taken care in previous
patch [1]. Now modified few more cases which were not handled earlier.
[1]. https://patchwork.kernel.org/patch/11394197/
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee')
-rw-r--r-- | drivers/tee/optee/optee_msg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/optee_msg.h b/drivers/tee/optee/optee_msg.h index 7b2d919da2ac..b1f1e902b19b 100644 --- a/drivers/tee/optee/optee_msg.h +++ b/drivers/tee/optee/optee_msg.h @@ -199,7 +199,7 @@ struct optee_msg_arg { u32 num_params; /* num_params tells the actual number of element in params */ - struct optee_msg_param params[0]; + struct optee_msg_param params[]; }; /** |