File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ static int rza_wdt_probe(struct platform_device *pdev)
169
169
struct device * dev = & pdev -> dev ;
170
170
struct rza_wdt * priv ;
171
171
unsigned long rate ;
172
- int ret ;
173
172
174
173
priv = devm_kzalloc (dev , sizeof (* priv ), GFP_KERNEL );
175
174
if (!priv )
@@ -218,11 +217,7 @@ static int rza_wdt_probe(struct platform_device *pdev)
218
217
watchdog_init_timeout (& priv -> wdev , 0 , dev );
219
218
watchdog_set_drvdata (& priv -> wdev , priv );
220
219
221
- ret = devm_watchdog_register_device (dev , & priv -> wdev );
222
- if (ret )
223
- dev_err (dev , "Cannot register watchdog device\n" );
224
-
225
- return ret ;
220
+ return devm_watchdog_register_device (dev , & priv -> wdev );
226
221
}
227
222
228
223
static const struct of_device_id rza_wdt_of_match [] = {
You can’t perform that action at this time.
0 commit comments