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

@@ -420,10 +420,9 @@ QDF_STATUS ucfg_nan_req_processor(struct wlan_objmgr_vdev *vdev,
}
msg.bodyptr = qdf_mem_malloc(len);
if (!msg.bodyptr) {
nan_err("malloc failed");
if (!msg.bodyptr)
return QDF_STATUS_E_NOMEM;
}
qdf_mem_copy(msg.bodyptr, in_req, len);
msg.type = req_type;
msg.callback = nan_scheduled_msg_handler;
@@ -1260,10 +1259,9 @@ QDF_STATUS ucfg_nan_disable_ind_to_userspace(struct wlan_objmgr_psoc *psoc)
disable_ind = qdf_mem_malloc(sizeof(struct nan_event_params) +
sizeof(msg));
if (!disable_ind) {
nan_err("failed to alloc disable_ind");
if (!disable_ind)
return QDF_STATUS_E_NOMEM;
}
disable_ind->psoc = psoc,
disable_ind->evt_type = nan_event_id_disable_ind;
disable_ind->buf_len = sizeof(msg);