From 3a6512aff1f2309418e3fc48a7d6f4aaeeda5679 Mon Sep 17 00:00:00 2001 From: hangtian Date: Wed, 16 Jan 2019 17:32:06 +0800 Subject: [PATCH] qcacmn: Use qdf_mem_zero for zero initialization, hif part Use qdf_mem_zero for zero initialization, hif part. Change-Id: Iada5aa04a2bf1f04bed6a0af7ee6ba4175997025 CRs-Fixed: 2378005 --- hif/src/ce/ce_diag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hif/src/ce/ce_diag.c b/hif/src/ce/ce_diag.c index 382f18074a30..7bbb9db299c9 100644 --- a/hif/src/ce/ce_diag.c +++ b/hif/src/ce/ce_diag.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2015-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 @@ -223,7 +223,7 @@ QDF_STATUS hif_diag_read_mem(struct hif_opaque_softc *hif_ctx, status = QDF_STATUS_E_NOMEM; goto done; } - qdf_mem_set(data_buf, orig_nbytes, 0); + qdf_mem_zero(data_buf, orig_nbytes); qdf_mem_dma_sync_single_for_device(scn->qdf_dev, CE_data_base, orig_nbytes, DMA_FROM_DEVICE);