]> git.baikalelectronics.ru Git - kernel.git/commit
power: reset: pwr-mlxbf: change rst_pwr_hid and low_pwr_hid from global to local...
authorTom Rix <trix@redhat.com>
Wed, 29 Jun 2022 19:20:45 +0000 (15:20 -0400)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 29 Jun 2022 19:41:59 +0000 (21:41 +0200)
commit21ca17ad21fb268a6c7d966012bee320355090fd
tree25c4695eac9b478def5ff363cb717d931f2dff08
parent84365ca8405e80e3b337f1cb02a41cc30eb88649
power: reset: pwr-mlxbf: change rst_pwr_hid and low_pwr_hid from global to local variables

sparse reports
drivers/power/reset/pwr-mlxbf.c:19:12: warning: symbol 'rst_pwr_hid' was not declared. Should it be static?
drivers/power/reset/pwr-mlxbf.c:20:12: warning: symbol 'low_pwr_hid' was not declared. Should it be static?

Both rst_pwr_hid and low_pwr_hid are only used in a single function
so they should be local variables.

Fixes: e0f56381891d ("power: reset: pwr-mlxbf: add BlueField SoC power control driver")
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/pwr-mlxbf.c