clk: mux: remove redundant initialization of variable width
authorColin Ian King <colin.i.king@gmail.com>
Sun, 24 Apr 2022 18:22:27 +0000 (19:22 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 25 Apr 2022 22:49:20 +0000 (15:49 -0700)
commit14364fca21208d0954d594e1eccb4ad239881081
treec622b04e2b6ed37534f47719cb65af55445a3047
parent3196a605659dcf7ea2a4442edf704aa0edc6e559
clk: mux: remove redundant initialization of variable width

Variable width is being ininitialized with a value that is never read.
The ininitializtion is redundant and can be removed. Move the variable
to the scope it is required.

Cleans up cppcheck warning:
Variable 'width' is assigned a value that is never used.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220424182227.1364966-1-colin.i.king@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-mux.c