diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 7005c34151e0..b31369e58908 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -14271,8 +14271,7 @@ static void hdd_state_info_dump(char **buf_ptr, uint16_t *size) hdd_ctx->is_scheduler_suspended); hdd_for_each_adapter_dev_held_safe(hdd_ctx, adapter, next_adapter) { - if (adapter->dev) - len += scnprintf(buf + len, *size - len, + len += scnprintf(buf + len, *size - len, "\n device name: %s", adapter->dev->name); len += scnprintf(buf + len, *size - len, "\n device_mode: %d", adapter->device_mode);