[PATCH 4/6] wifi: ath10k: remove unused template structs

Kees Cook keescook at chromium.org
Wed Dec 13 11:12:33 PST 2023


On Wed, Dec 13, 2023 at 09:06:42AM -0800, Jeff Johnson wrote:
> Currently both the wmi_bcn_tmpl_cmd and wmi_prb_tmpl_cmd structs
> define:
> 	  u8 data[1];
> 
> Per the guidance in [1] both instances of this should be flexible
> arrays. However during conversion it was discovered that neither of
> these structs are actually used, so just remove them.
> 
> No functional changes, compile tested only.
> 
> [1] https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays
> 
> Signed-off-by: Jeff Johnson <quic_jjohnson at quicinc.com>

Unused! :)

Reviewed-by: Kees Cook <keescook at chromium.org>

-- 
Kees Cook



More information about the ath10k mailing list