Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1491909 > unrolled thread

[PATCH 3/3] coresight: tmc: Remove duplicate memset

Started bySuzuki K Poulose <suzuki.poulose@arm.com>
First post2016-09-27 15:50 +0200
Last post2016-09-27 15:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] coresight: tmc: Remove duplicate memset Suzuki K Poulose <suzuki.poulose@arm.com> - 2016-09-27 15:50 +0200

#1491909 — [PATCH 3/3] coresight: tmc: Remove duplicate memset

FromSuzuki K Poulose <suzuki.poulose@arm.com>
Date2016-09-27 15:50 +0200
Subject[PATCH 3/3] coresight: tmc: Remove duplicate memset
Message-ID<sm0VH-1H1-7@gated-at.bofh.it>
The tmc_etr_enable_hw() fills the buffer with 0's before enabling
the hardware. So, we don't need an explicit memset() in
tmc_enable_etr_sink_sysfs() before calling the tmc_etr_enable_hw().
This patch removes the explicit memset from tmc_enable_etr_sink_sysfs.

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 drivers/hwtracing/coresight/coresight-tmc-etr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c
index 3b84d0d..5d31269 100644
--- a/drivers/hwtracing/coresight/coresight-tmc-etr.c
+++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c
@@ -150,8 +150,6 @@ static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev)
 		drvdata->buf = drvdata->vaddr;
 	}
 
-	memset(drvdata->vaddr, 0, drvdata->size);
-
 	drvdata->mode = CS_MODE_SYSFS;
 	tmc_etr_enable_hw(drvdata);
 out:
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web