From 2a9234e60e83a86c221827821196c98ff06005ef Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Fri, 12 Feb 2021 15:08:59 +0530 Subject: [PATCH] qcacld-3.0: Don't assert if INI parsing failed due to system reboot Currently driver is asserting when INI file parsing is failed. But it is expected to fail when system state is under reboot or power off. This is because kernel disables file reading during this reboot or power off. To address this, Remove the assert based on the status of cfg_parse API. Change-Id: Ief92e1af5cc22d4bfad481953f203719a9c17343 CRs-Fixed: 2877051 --- core/hdd/src/wlan_hdd_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index cc64b4649781..516be29160ba 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -12558,7 +12558,6 @@ struct hdd_context *hdd_context_create(struct device *dev) } status = cfg_parse(WLAN_INI_FILE); - QDF_BUG(QDF_IS_STATUS_SUCCESS(status)); if (QDF_IS_STATUS_ERROR(status)) { hdd_err("Failed to parse cfg %s; status:%d\n", WLAN_INI_FILE, status);