diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-02-16 17:01:32 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2024-02-22 08:36:09 +0300 |
commit | d71e1f5b1048bb7474a90a0c570197063831e730 (patch) | |
tree | ed2a32fcbb6d5e9641b21b65b510129f38237f84 /drivers/clk/clk-cdce925.c | |
parent | 44042fb0d66182e3d6da2b010dbae58b170ca3c8 (diff) | |
download | linux-d71e1f5b1048bb7474a90a0c570197063831e730.tar.xz |
clk: cdce925: Remove redundant assignment to variable 'rate'
The variable 'rate' being assigned a value that is never read, the
assignment is redundant and can be removed.
Cleans up clang scan build warning:
drivers/clk/clk-cdce925.c:104:3: warning: Value stored to 'rate' is
never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20240216140132.2108665-1-colin.i.king@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-cdce925.c')
-rw-r--r-- | drivers/clk/clk-cdce925.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/clk/clk-cdce925.c b/drivers/clk/clk-cdce925.c index b0122093c6ff..e48be7a6c0e2 100644 --- a/drivers/clk/clk-cdce925.c +++ b/drivers/clk/clk-cdce925.c @@ -101,7 +101,6 @@ static void cdce925_pll_find_rate(unsigned long rate, if (rate <= parent_rate) { /* Can always deliver parent_rate in bypass mode */ - rate = parent_rate; *n = 0; *m = 0; } else { |