]> asedeno.scripts.mit.edu Git - linux.git/commit
coresight: stm: Remove set but not used variable 'res_size'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 5 Feb 2019 23:24:54 +0000 (16:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2019 11:27:36 +0000 (12:27 +0100)
commita7325a6ca45f6a53ad8f639b7b69f22961ad3757
tree8d20397bf0db3f278c1a3b2ff8dcaf666e5aeef9
parenta0f890aba2be33377f4eb24e13633c4a76a68f38
coresight: stm: Remove set but not used variable 'res_size'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/hwtracing/coresight/coresight-stm.c: In function 'stm_probe':
drivers/hwtracing/coresight/coresight-stm.c:796:9: warning:
 variable 'res_size' set but not used [-Wunused-but-set-variable]

It never used since introduction in commit 237483aa5cf4 ("coresight: stm:
adding driver for CoreSight STM component")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-stm.c