Commit bac20e41 authored by Gaetan Perrot's avatar Gaetan Perrot Committed by Daniel DeGrasse
Browse files

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: default avatarGaetan Perrot <gaetan.perrot@spacecubics.com>
parent acf2d665
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -202,11 +202,6 @@ int nrf_wifi_get_power_save_config(const struct device *dev,

	fmac_dev_ctx = rpu_ctx_zep->rpu_ctx;

	if (!rpu_ctx_zep) {
		LOG_ERR("%s: rpu_ctx_zep is NULL", __func__);
		goto out;
	}

	vif_ctx_zep->ps_info = ps_config;

	vif_ctx_zep->ps_config_info_evnt = false;