File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ static int visconti_wdt_probe(struct platform_device *pdev)
118118 struct visconti_wdt_priv * priv ;
119119 struct device * dev = & pdev -> dev ;
120120 struct clk * clk ;
121- int ret ;
122121 unsigned long clk_freq ;
123122
124123 priv = devm_kzalloc (dev , sizeof (* priv ), GFP_KERNEL );
@@ -153,9 +152,7 @@ static int visconti_wdt_probe(struct platform_device *pdev)
153152 watchdog_stop_on_unregister (wdev );
154153
155154 /* This overrides the default timeout only if DT configuration was found */
156- ret = watchdog_init_timeout (wdev , 0 , dev );
157- if (ret )
158- dev_warn (dev , "Specified timeout value invalid, using default\n" );
155+ watchdog_init_timeout (wdev , 0 , dev );
159156
160157 return devm_watchdog_register_device (dev , wdev );
161158}
You can’t perform that action at this time.
0 commit comments