aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2022-01-07 18:33:03 +0000
committerStephen Boyd <[email protected]>2022-01-08 00:08:07 +0000
commit4e31bfa37662f72e8e7e3ae46eb5f845a5854229 (patch)
tree206586996e700f3a2a2254075d5574464c45c070 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentMAINTAINERS: Add entries for Toshiba Visconti PLL and clock controller (diff)
downloadkernel-4e31bfa37662f72e8e7e3ae46eb5f845a5854229.tar.gz
kernel-4e31bfa37662f72e8e7e3ae46eb5f845a5854229.zip
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 <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions