diff options
author | Nathan Chancellor <nathan@kernel.org> | 2022-01-07 21:33:03 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-01-08 03:08:07 +0300 |
commit | 4e31bfa37662f72e8e7e3ae46eb5f845a5854229 (patch) | |
tree | 206586996e700f3a2a2254075d5574464c45c070 /drivers/clk/renesas/Makefile | |
parent | 70faf946ad975c64efb2eb809f9139f304a494b0 (diff) | |
download | linux-4e31bfa37662f72e8e7e3ae46eb5f845a5854229.tar.xz |
clk: visconti: Remove pointless NULL check in visconti_pll_add_lookup()
Clang warns:
drivers/clk/visconti/pll.c:292:20: warning: address of array 'ctx->clk_data.hws' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (ctx->clk_data.hws && id)
~~~~~~~~~~~~~~^~~ ~~
1 warning generated.
This array cannot be NULL if ctx is not NULL, which is allocated in
visconti_init_pll(), so just remove the check, which matches other clk
drivers.
Fixes: b4cbe606dc36 ("clk: visconti: Add support common clock driver and reset driver")
Link: https://github.com/ClangBuiltLinux/linux/issues/1564
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20220107183303.2337676-1-nathan@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/renesas/Makefile')
0 files changed, 0 insertions, 0 deletions