Bläddra i källkod

qcacmn: Update error if failed to read at least one INI parameter

INI parameters parsing can fail because of fail to read INI file or
failed to parse at least one parameter. In some scenarios, driver should
assert if parsing is failed for atleast one INI parameter.

To differentiate these two failures, return different error status
values.

Change-Id: I187d2b2e8f55af47a14561302d8b62e84de7da5a
CRs-Fixed: 2878966
Bapiraju Alla 4 år sedan
förälder
incheckning
e9dd7d1d40
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      qdf/src/qdf_parse.c

+ 2 - 2
qdf/src/qdf_parse.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -126,7 +126,7 @@ QDF_STATUS qdf_ini_parse(const char *ini_path, void *context,
 	if (ini_read_count != 0)
 		status = QDF_STATUS_SUCCESS;
 	else
-		status = QDF_STATUS_E_FAILURE;
+		status = QDF_STATUS_E_INVAL;
 
 free_fbuf:
 	qdf_file_buf_free(fbuf);