Re: [PATCH 8/9] watchdog: of_xilinx_wdt: Remove passing null pointer

2021-03-15 Thread Guenter Roeck
On 3/15/21 3:46 AM, Srinivas Neeli wrote: > clk is an optional property, if clock not defined, > calling clk_prepare_enable() and devm_add_action_or_reset() > are not useful. > so calling these two apis only when clock is present. > > Addresses-Coverity:"FORWARD_NULL" > > Signed-off-by: Srinivas

[PATCH 8/9] watchdog: of_xilinx_wdt: Remove passing null pointer

2021-03-15 Thread Srinivas Neeli
clk is an optional property, if clock not defined, calling clk_prepare_enable() and devm_add_action_or_reset() are not useful. so calling these two apis only when clock is present. Addresses-Coverity:"FORWARD_NULL" Signed-off-by: Srinivas Neeli --- drivers/watchdog/of_xilinx_wdt.c | 20