Skip to content

Commit bac20e4

Browse files
moonlight83340danieldegrasse
authored andcommitted
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 <gaetan.perrot@spacecubics.com>
1 parent acf2d66 commit bac20e4

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
@@ -202,11 +202,6 @@ int nrf_wifi_get_power_save_config(const struct device *dev,
202202

203203
fmac_dev_ctx = rpu_ctx_zep->rpu_ctx;
204204

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

212207
vif_ctx_zep->ps_config_info_evnt = false;

0 commit comments

Comments
 (0)