Skip to content

Commit 0d2ab5f

Browse files
GustavoARSilvaMiriam-Rachel
authored andcommitted
wifi: iwlwifi: mei: Remove unused flexible-array member in struct iwl_sap_hdr
Remove unused fexible-array member and avoid 14 of the following type of warnings: drivers/net/wireless/intel/iwlwifi/mei/sap.h:318:28: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://patch.msgid.link/aK6-usANI1UPtFVo@kspp Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
1 parent b4b34ba commit 0d2ab5f

File tree

1 file changed

+0
-2
lines changed
  • drivers/net/wireless/intel/iwlwifi/mei

1 file changed

+0
-2
lines changed

drivers/net/wireless/intel/iwlwifi/mei/sap.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,11 @@ enum iwl_sap_msg {
300300
* @type: See &enum iwl_sap_msg.
301301
* @len: The length of the message (header not included).
302302
* @seq_num: For debug.
303-
* @payload: The payload of the message.
304303
*/
305304
struct iwl_sap_hdr {
306305
__le16 type;
307306
__le16 len;
308307
__le32 seq_num;
309-
u8 payload[];
310308
};
311309

312310
/**

0 commit comments

Comments
 (0)