Răsfoiți Sursa

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
Bapiraju Alla 4 ani în urmă
părinte
comite
f443a59ef2
1 a modificat fișierele cu 0 adăugiri și 1 ștergeri
  1. 0 1
      core/hdd/src/wlan_hdd_main.c

+ 0 - 1
core/hdd/src/wlan_hdd_main.c

@@ -12475,7 +12475,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);