Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: si5341: drop unused 'err' variable

'err' is assigned but never read:

/drivers/clk/clk-si5341.c: In function ‘si5341_output_get_parent’:
drivers/clk/clk-si5341.c:886:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200916161740.14173-5-krzk@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Stephen Boyd
84afc9ec f5e75b4a

+1 -3
+1 -3
drivers/clk/clk-si5341.c
··· 883 883 static u8 si5341_output_get_parent(struct clk_hw *hw) 884 884 { 885 885 struct clk_si5341_output *output = to_clk_si5341_output(hw); 886 - int err; 887 886 u32 val; 888 887 889 - err = regmap_read(output->data->regmap, 890 - SI5341_OUT_MUX_SEL(output), &val); 888 + regmap_read(output->data->regmap, SI5341_OUT_MUX_SEL(output), &val); 891 889 892 890 return val & 0x7; 893 891 }