qcacld-3.0: components: Remove logs for qdf_mem_malloc() checks

qdf_mem_malloc() function already takes care of logging the
caller function name and line number in case of any allocation error.
Hence there is no need to add the error log again.

Getting rid of these unnecessary logs reduces driver memory footprint.

Change-Id: If0b9425f82f9ed793c7639c0ed09eb1f868b6d5c
CRs-Fixed: 2781932
This commit is contained in:
Srinivas Girigowda
2020-09-21 12:26:50 -07:00
committed by snandini
parent ecee02da1d
commit d36054fbd2
45 changed files with 95 additions and 282 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2018, 2020 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
@@ -133,7 +133,6 @@ action_oui_psoc_create_notification(struct wlan_objmgr_psoc *psoc, void *arg)
psoc_priv = qdf_mem_malloc(sizeof(*psoc_priv));
if (!psoc_priv) {
action_oui_err("Failed to allocate psoc_priv");
status = QDF_STATUS_E_NOMEM;
goto exit;
}

View File

@@ -497,7 +497,6 @@ action_oui_extension_store(struct action_oui_psoc_priv *psoc_priv,
ext_priv = qdf_mem_malloc(sizeof(*ext_priv));
if (!ext_priv) {
qdf_mutex_release(&oui_priv->extension_lock);
action_oui_err("Failed to allocate memory for action oui extension priv");
return QDF_STATUS_E_NOMEM;
}
@@ -698,7 +697,6 @@ QDF_STATUS action_oui_send(struct action_oui_psoc_priv *psoc_priv,
len = sizeof(*req) + no_oui_extensions * sizeof(*extension);
req = qdf_mem_malloc(len);
if (!req) {
action_oui_err("Failed to allocate memory for action_oui");
qdf_mutex_release(&oui_priv->extension_lock);
return QDF_STATUS_E_NOMEM;
}

View File

@@ -116,7 +116,6 @@ ucfg_action_oui_parse(struct wlan_objmgr_psoc *psoc,
oui_str = qdf_mem_malloc(len + 1);
if (!oui_str) {
action_oui_err("Mem alloc failed for string: %u", action_id);
status = QDF_STATUS_E_NOMEM;
goto exit;
}