From: Jérôme Pouiller Date: Mon, 7 Sep 2020 10:15:13 +0000 (+0200) Subject: staging: wfx: drop useless union hif_event_data X-Git-Tag: v5.15~2674^2~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79836c2eb95aae5e4562eee3b16bd611fc712de3;p=platform%2Fkernel%2Flinux-starfive.git staging: wfx: drop useless union hif_event_data The union hif_event_data is never used in the driver. So, it is not necessary to declare it separately from hif_ind_event. Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20200907101521.66082-24-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/hif_api_cmd.h b/drivers/staging/wfx/hif_api_cmd.h index 17cd317..c18e762 100644 --- a/drivers/staging/wfx/hif_api_cmd.h +++ b/drivers/staging/wfx/hif_api_cmd.h @@ -548,15 +548,13 @@ enum hif_ps_mode_error { HIF_PS_ERROR_AP_NO_DATA_AFTER_TIM = 4 }; -union hif_event_data { - u8 rcpi_rssi; - __le32 ps_mode_error; - __le32 peer_sta_set; -}; - struct hif_ind_event { __le32 event_id; - union hif_event_data event_data; + union { + u8 rcpi_rssi; + __le32 ps_mode_error; + __le32 peer_sta_set; + } event_data; } __packed;