qcacmn: Remove error log for qdf_mem_malloc in utils/ftm files

qdf layer already has the error trace

Change-Id: Ida43aeeeea8004ab47015214565ae3fd8a78b903
CRs-Fixed: 2376434
This commit is contained in:
Madhvapathi Sriram
2019-01-07 09:43:00 +05:30
committed by nshrivas
parent 207dcdbcfe
commit 1197bf79b8
4 changed files with 10 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-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
@@ -53,12 +53,8 @@ int epping_cookie_init(epping_context_t *pEpping_ctx)
pEpping_ctx->s_cookie_mem[i] =
qdf_mem_malloc(sizeof(struct epping_cookie) *
MAX_COOKIE_SLOT_SIZE);
if (pEpping_ctx->s_cookie_mem[i] == NULL) {
EPPING_LOG(QDF_TRACE_LEVEL_FATAL,
"%s: no mem for cookie (idx = %d)", __func__,
i);
if (!pEpping_ctx->s_cookie_mem[i])
goto error;
}
}
qdf_spinlock_create(&pEpping_ctx->cookie_lock);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-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
@@ -81,11 +81,8 @@ int epping_open(void)
g_epping_ctx = qdf_mem_malloc(sizeof(*g_epping_ctx));
if (g_epping_ctx == NULL) {
EPPING_LOG(QDF_TRACE_LEVEL_ERROR,
"%s: cannot alloc epping context", __func__);
if (!g_epping_ctx)
return -ENOMEM;
}
g_epping_ctx->con_mode = cds_get_conparam();
return 0;