coresight: tmc: Remove duplicate memset
authorSuzuki K. Poulose <Suzuki.Poulose@arm.com>
Tue, 29 Nov 2016 16:47:17 +0000 (09:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 19:05:32 +0000 (20:05 +0100)
commit675a502305c49c6778a53ac47061783defc386ad
tree639a425cd0e97adc8f5aeda6be4e72d8831c13cc
parentc38e505e27017268b86ca89e51582a57e67b39b7
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-tmc-etr.c