coresight: tmc: Remove duplicate memset
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> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> (cherry picked from commit 80445970ae1c928e503aefc66033e825b9668884)
This commit is contained in:
committed by
Guodong Xu
parent
d0d63cb9c1
commit
1825a7db86
@@ -150,8 +150,6 @@ static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev)
|
|||||||
drvdata->buf = drvdata->vaddr;
|
drvdata->buf = drvdata->vaddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(drvdata->vaddr, 0, drvdata->size);
|
|
||||||
|
|
||||||
drvdata->mode = CS_MODE_SYSFS;
|
drvdata->mode = CS_MODE_SYSFS;
|
||||||
tmc_etr_enable_hw(drvdata);
|
tmc_etr_enable_hw(drvdata);
|
||||||
out:
|
out:
|
||||||
|
|||||||
Reference in New Issue
Block a user