Commit fda90b29 authored by Tian Tao's avatar Tian Tao Committed by Jens Wiklander
Browse files

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: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent c7020068
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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[];
};

/**