From ff697723bbbd9e4023376f31a34c1bcd0d7bc46a Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Sun, 14 Feb 2021 23:34:01 -0800 Subject: [PATCH] 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 --- qdf/src/qdf_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qdf/src/qdf_parse.c b/qdf/src/qdf_parse.c index 469d59a4fdf1..88307470a856 100644 --- a/qdf/src/qdf_parse.c +++ b/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);