qcacmn: Remove error log for qdf_mem_malloc in spectral files

qdf layer already has the error trace

Change-Id: Ia8314900f564369f51fd79cd97f3a9dba5d54a1b
CRs-Fixed: 2376437
This commit is contained in:
Madhvapathi Sriram
2019-01-07 09:47:45 +05:30
committed by nshrivas
parent b4d634fbf2
commit 65c8e4be73

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011,2017-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2011,2017-2019 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -560,10 +560,9 @@ wlan_spectral_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg)
sc = (struct spectral_context *)
qdf_mem_malloc(sizeof(struct spectral_context));
if (!sc) {
spectral_err("Failed to allocate spectral_ctx object");
if (!sc)
return QDF_STATUS_E_NOMEM;
}
qdf_mem_zero(sc, sizeof(struct spectral_context));
sc->psoc_obj = psoc;
if (wlan_objmgr_psoc_get_dev_type(psoc) == WLAN_DEV_OL)
@@ -625,10 +624,9 @@ wlan_spectral_pdev_obj_create_handler(struct wlan_objmgr_pdev *pdev, void *arg)
ps = (struct pdev_spectral *)
qdf_mem_malloc(sizeof(struct pdev_spectral));
if (!ps) {
spectral_err("Failed to allocate pdev_spectral object");
if (!ps)
return QDF_STATUS_E_NOMEM;
}
sc = spectral_get_spectral_ctx_from_pdev(pdev);
if (!sc) {
spectral_err("Spectral context is NULL!");