diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2018-05-09 12:06:06 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 16:19:59 +0200 |
commit | 805c2c2cd0d3f16438d2391f3f188e4357fbc1cc (patch) | |
tree | 5e493de259f2b58cf27eeb079c71cfb5e45eb349 | |
parent | 3606a1dcb46eee173203702b6b19cd898afa5d15 (diff) | |
download | linux-805c2c2cd0d3f16438d2391f3f188e4357fbc1cc.tar.gz linux-805c2c2cd0d3f16438d2391f3f188e4357fbc1cc.tar.bz2 linux-805c2c2cd0d3f16438d2391f3f188e4357fbc1cc.zip |
coresight tmc etr: Fix uninitialised variable
Variable 'paddr' can't be used if uninitialised but is nonetheless
confusing to some static checker. As such simply initialise it to zero.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/hwtracing/coresight/coresight-tmc-etr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index 8ee8c66f4002..f57199580c11 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -113,7 +113,7 @@ static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) bool used = false; unsigned long flags; void __iomem *vaddr = NULL; - dma_addr_t paddr; + dma_addr_t paddr = 0; struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); |