]> www.infradead.org Git - users/jedix/linux-maple.git/commit
coresight: cti: Reduce scope for the variable “cs_fwnode” in cti_plat_create_connection()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 9 Dec 2020 20:34:48 +0000 (21:34 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 10 Dec 2020 21:39:28 +0000 (14:39 -0700)
commit1efbcec2ef8c037f1e801c76e4b9434ee2400be7
tree7ddcc2e5c3a844f03831e193968d3283e2539574
parente72550928ff052ca721777875bd23a7abf3efb13
coresight: cti: Reduce scope for the variable “cs_fwnode” in cti_plat_create_connection()

A local variable was used only within an else branch.
Thus move the definition for the variable “cs_fwnode” into
the corresponding code block.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-cti-platform.c