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
父節點 207dcdbcfe
當前提交 1197bf79b8
共有 4 個文件被更改,包括 10 次插入26 次删除

查看文件

@@ -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);

查看文件

@@ -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;

查看文件

@@ -126,11 +126,8 @@ void host_diag_log_submit(void *plog_hdr_ptr)
pBuf = (uint8_t *) qdf_mem_malloc(total_len);
if (!pBuf) {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR,
"qdf_mem_malloc failed");
if (!pBuf)
return;
}
wmsg = (tAniHdr *) pBuf;
wmsg->type = PTT_MSG_DIAG_CMDS_TYPE;
@@ -219,11 +216,9 @@ void host_diag_event_report_payload(uint16_t event_Id, uint16_t length,
pBuf = (uint8_t *) qdf_mem_malloc(total_len);
if (!pBuf) {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR,
"qdf_mem_malloc failed");
if (!pBuf)
return;
}
wmsg = (tAniHdr *) pBuf;
wmsg->type = PTT_MSG_DIAG_CMDS_TYPE;
wmsg->length = total_len;