OSDN Git Service

clk: rockchip: Fix -Wunused-const-variable in rv1108 clk driver
authorNathan Huckleberry <nhuck@google.com>
Thu, 27 Jun 2019 22:22:20 +0000 (15:22 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 25 Jul 2019 19:00:52 +0000 (21:00 +0200)
commit7114fbdaa2aad9ff00c4acc1fbba3eb07bac8889
tree3b80a4b655454b8c80117210f269bb147ab45956
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
clk: rockchip: Fix -Wunused-const-variable in rv1108 clk driver

Clang produces the following warning

drivers/clk/rockchip/clk-rv1108.c:125:7: warning: unused variable
'mux_pll_src_3plls_p' [-Wunused-const-variable]
PNAME(mux_pll_src_3plls_p)      = { "apll", "gpll", "dpll" };

Looks like this variable was never used. Deleting it to remove the
warning.

Cc: clang-built-linux@googlegroups.com
Link: https://github.com/ClangBuiltLinux/linux/issues/524
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-rv1108.c