aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2020-09-23 17:41:44 -0700
committerStephen Boyd <[email protected]>2020-10-07 19:08:38 -0700
commitb608f11d49ec671739604cc763248d8e8fadbbeb (patch)
treecf50589379935c8d5c5bf26935297e8101e342eb /scripts/gdb/linux
parentca52a47af60f791b08a540a8e14d8f5751ee63e9 (diff)
clk: rockchip: Initialize hw to error to avoid undefined behavior
We can get down to this return value from ERR_CAST() without initializing hw. Set it to -ENOMEM so that we always return something sane. Fixes the following smatch warning: drivers/clk/rockchip/clk-half-divider.c:228 rockchip_clk_register_halfdiv() error: uninitialized symbol 'hw'. drivers/clk/rockchip/clk-half-divider.c:228 rockchip_clk_register_halfdiv() warn: passing zero to 'ERR_CAST' Cc: Elaine Zhang <[email protected]> Cc: Heiko Stuebner <[email protected]> Fixes: 956060a52795 ("clk: rockchip: add support for half divider") Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions