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

parent
ecee02da1d
commit
d36054fbd2
@@ -158,7 +158,6 @@ QDF_STATUS pmo_psoc_object_created_notification(
|
||||
|
||||
psoc_ctx = qdf_mem_malloc(sizeof(*psoc_ctx));
|
||||
if (!psoc_ctx) {
|
||||
pmo_err("Failed to allocate pmo_psoc");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
@@ -244,7 +243,6 @@ QDF_STATUS pmo_vdev_object_created_notification(
|
||||
|
||||
vdev_ctx = qdf_mem_malloc(sizeof(*vdev_ctx));
|
||||
if (!vdev_ctx) {
|
||||
pmo_err("Failed to allocate vdev_ctx");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
@@ -42,14 +42,12 @@ QDF_STATUS pmo_tgt_enable_arp_offload_req(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
arp_offload_req = qdf_mem_malloc(sizeof(*arp_offload_req));
|
||||
if (!arp_offload_req) {
|
||||
pmo_err("unable to allocate arp_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ns_offload_req = qdf_mem_malloc(sizeof(*ns_offload_req));
|
||||
if (!ns_offload_req) {
|
||||
pmo_err("unable to allocate ns_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
@@ -112,14 +110,12 @@ QDF_STATUS pmo_tgt_disable_arp_offload_req(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
arp_offload_req = qdf_mem_malloc(sizeof(*arp_offload_req));
|
||||
if (!arp_offload_req) {
|
||||
pmo_err("unable to allocate arp_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ns_offload_req = qdf_mem_malloc(sizeof(*ns_offload_req));
|
||||
if (!ns_offload_req) {
|
||||
pmo_err("unable to allocate ns_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-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
|
||||
@@ -55,7 +55,6 @@ QDF_STATUS pmo_tgt_send_gtk_offload_req(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
op_gtk_req = qdf_mem_malloc(sizeof(*op_gtk_req));
|
||||
if (!op_gtk_req) {
|
||||
pmo_err("cannot allocate op_gtk_req ");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
@@ -43,14 +43,12 @@ QDF_STATUS pmo_tgt_enable_ns_offload_req(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
arp_offload_req = qdf_mem_malloc(sizeof(*arp_offload_req));
|
||||
if (!arp_offload_req) {
|
||||
pmo_err("unable to allocate arp_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ns_offload_req = qdf_mem_malloc(sizeof(*ns_offload_req));
|
||||
if (!ns_offload_req) {
|
||||
pmo_err("unable to allocate ns_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
@@ -114,14 +112,12 @@ QDF_STATUS pmo_tgt_disable_ns_offload_req(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
arp_offload_req = qdf_mem_malloc(sizeof(*arp_offload_req));
|
||||
if (!arp_offload_req) {
|
||||
pmo_err("unable to allocate arp_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ns_offload_req = qdf_mem_malloc(sizeof(*ns_offload_req));
|
||||
if (!ns_offload_req) {
|
||||
pmo_err("unable to allocate ns_offload_req");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-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
|
||||
@@ -49,9 +49,7 @@ QDF_STATUS pmo_tgt_set_pkt_filter(struct wlan_objmgr_vdev *vdev,
|
||||
pmo_set_pkt_fltr_req->filter_id);
|
||||
|
||||
request_buf = qdf_mem_malloc(sizeof(*request_buf));
|
||||
|
||||
if (!request_buf) {
|
||||
pmo_err("Not able to allocate memory for Receive Filter Set Filter request");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
@@ -113,9 +111,7 @@ QDF_STATUS pmo_tgt_clear_pkt_filter(struct wlan_objmgr_vdev *vdev,
|
||||
pmo_debug("filter_id = %d", pmo_clr_pkt_fltr_param->filter_id);
|
||||
|
||||
request_buf = qdf_mem_malloc(sizeof(*request_buf));
|
||||
|
||||
if (!request_buf) {
|
||||
pmo_err("Not able to allocate memory for Receive Filter Set Filter request");
|
||||
status = QDF_STATUS_E_NOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user