Commit b6f51edd authored by Pisit Sawangvonganan's avatar Pisit Sawangvonganan Committed by Fabio Baltieri
Browse files

wifi: shell: removed NULL check to net_mgmt callback



Since PR, PR_SHELL, PR_ERROR, PR_INFO, and PR_WARNING already have
an embedded `sh` NULL check, we can remove the change from PR #68809.

Signed-off-by: default avatarPisit Sawangvonganan <pisit@ndrsolution.com>
parent 7b8a9e18
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -404,10 +404,6 @@ static void handle_wifi_ap_sta_disconnected(struct net_mgmt_event_callback *cb)
static void wifi_mgmt_event_handler(struct net_mgmt_event_callback *cb,
				    uint32_t mgmt_event, struct net_if *iface)
{
	if (context.sh == NULL) {
		return;
	}

	switch (mgmt_event) {
	case NET_EVENT_WIFI_SCAN_RESULT:
		handle_wifi_scan_result(cb);