qcacmn: Remove error log for qdf_mem_malloc in cfg files

qdf layer already has the error trace

Change-Id: Ie5f1c8df32b83b3941f4a54b7a0115eb6f84400f
CRs-Fixed: 2376435
This commit is contained in:
Madhvapathi Sriram 2019-01-07 09:45:57 +05:30 • committed by nshrivas
commit b49d30e408

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 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
@ -388,10 +388,8 @@ cfg_store_alloc(const char *path, struct cfg_value_store **out_store)
cfg_enter();
store = qdf_mem_malloc(sizeof(*store));
if (!store) {
cfg_err("Out of memory");
if (!store)
return QDF_STATUS_E_NOMEM;
}
status = qdf_str_dup(&store->path, path);
if (QDF_IS_STATUS_ERROR(status))
@ -534,10 +532,8 @@ cfg_on_psoc_create(struct wlan_objmgr_psoc *psoc, void *context)
return QDF_STATUS_E_FAILURE;
psoc_ctx = qdf_mem_malloc(sizeof(*psoc_ctx));
if (!psoc_ctx) {
cfg_err("Out of memory");
if (!psoc_ctx)
return QDF_STATUS_E_NOMEM;
}
qdf_atomic_inc(&__cfg_global_store->users);
psoc_ctx->store = __cfg_global_store;