Skip to content

Commit 63dc574

Browse files
moonlight83340krish2718
authored andcommitted
[nrf fromtree] drivers: wifi: nrf_wifi: wifi_mgmt: remove redundant null check
Deleted a redundant check for 'rpu_ctx_zep' pointer after it was already dereferenced. Clarifies code logic in nrf_wifi_get_power_save_config function. Signed-off-by: Gaetan Perrot <[email protected]> (cherry picked from commit bac20e4)
1 parent be97064 commit 63dc574

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/wifi/nrf_wifi/src/wifi_mgmt.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ int nrf_wifi_get_power_save_config(const struct device *dev,
203203

204204
fmac_dev_ctx = rpu_ctx_zep->rpu_ctx;
205205

206-
if (!rpu_ctx_zep) {
207-
LOG_ERR("%s: rpu_ctx_zep is NULL", __func__);
208-
goto out;
209-
}
210-
211206
vif_ctx_zep->ps_info = ps_config;
212207

213208
vif_ctx_zep->ps_config_info_evnt = false;

0 commit comments

Comments
 (0)