Skip to content

Commit a20db58

Browse files
westeribroonie
authored andcommitted
regmap: regmap-w1: Drop unreachable code
Both init functions have a stray "return NULL" at the end which is never reached so drop them. Signed-off-by: Mika Westerberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 54ecb8f commit a20db58

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/base/regmap/regmap-w1.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ struct regmap *__regmap_init_w1(struct device *w1_dev,
215215

216216
return __regmap_init(w1_dev, bus, w1_dev, config,
217217
lock_key, lock_name);
218-
219-
return NULL;
220218
}
221219
EXPORT_SYMBOL_GPL(__regmap_init_w1);
222220

@@ -233,8 +231,6 @@ struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
233231

234232
return __devm_regmap_init(w1_dev, bus, w1_dev, config,
235233
lock_key, lock_name);
236-
237-
return NULL;
238234
}
239235
EXPORT_SYMBOL_GPL(__devm_regmap_init_w1);
240236

0 commit comments

Comments
 (0)