]> git.baikalelectronics.ru Git - kernel.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)
commitd420f151c00a30cf0b130bcee50ab83532e3e884
tree8d20397bf0db3f278c1a3b2ff8dcaf666e5aeef9
parentf6acb40bda87c4fac5313f8dfb951c64e749006e
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 3d95e1f86b2a ("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