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:

committed by
snandini

vanhempi
ecee02da1d
commit
d36054fbd2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-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
|
||||
@@ -123,7 +123,6 @@ int target_if_pmo_gtk_offload_status_event(void *scn_handle,
|
||||
|
||||
gtk_rsp_param = qdf_mem_malloc(sizeof(*gtk_rsp_param));
|
||||
if (!gtk_rsp_param) {
|
||||
target_if_err("memory allocation failed");
|
||||
ret = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
@@ -258,9 +258,7 @@ QDF_STATUS target_if_pmo_lphb_evt_handler(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
slphb_indication = (struct pmo_lphb_rsp *)qdf_mem_malloc(
|
||||
sizeof(struct pmo_lphb_rsp));
|
||||
|
||||
if (!slphb_indication) {
|
||||
target_if_err("Invalid LPHB indication buffer");
|
||||
qdf_status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
Viittaa uudesa ongelmassa
Block a user