Skip to content

Commit

Permalink
drivers: wifi: Fix compiler warning
Browse files Browse the repository at this point in the history
Latest compilers complain about "label can only be part of a statement
and a declaration is not a statement".

Fix this by moving the declaration to the beginning.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 authored and rlubos committed Sep 20, 2023
1 parent 69d3bd7 commit b5e89e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/wifi/nrf700x/osal/fw_if/umac_if/src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ static enum wifi_nrf_status umac_process_sys_events(struct wifi_nrf_fmac_dev_ctx
unsigned char *sys_head = NULL;
#ifdef CONFIG_NRF700X_RADIO_TEST
struct wifi_nrf_fmac_dev_ctx_rt *def_dev_ctx;
struct nrf_wifi_umac_event_err_status *umac_status =
((struct nrf_wifi_umac_event_err_status *)sys_head);

def_dev_ctx = wifi_dev_priv(fmac_dev_ctx);
#endif /* CONFIG_NRF700X_RADIO_TEST */
Expand Down Expand Up @@ -886,8 +888,6 @@ static enum wifi_nrf_status umac_process_sys_events(struct wifi_nrf_fmac_dev_ctx
sys_head);
break;
case NRF_WIFI_EVENT_RADIOCMD_STATUS:
struct nrf_wifi_umac_event_err_status *umac_status =
((struct nrf_wifi_umac_event_err_status *)sys_head);
def_dev_ctx->radio_cmd_status = umac_status->status;
def_dev_ctx->radio_cmd_done = true;
status = WIFI_NRF_STATUS_SUCCESS;
Expand Down

0 comments on commit b5e89e5

Please sign in to comment.