diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-11-19 13:58:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-19 14:09:20 +0100 |
commit | a20db58f3e6e6770362614c488e5426f972de97e (patch) | |
tree | 791f7ece7621f8d918e9e3e656a2fa0fda2ba094 /drivers/base/regmap/regmap-w1.c | |
parent | Linux 5.4-rc1 (diff) | |
download | linux-a20db58f3e6e6770362614c488e5426f972de97e.tar.xz linux-a20db58f3e6e6770362614c488e5426f972de97e.zip |
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 <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20191119125837.47619-1-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap/regmap-w1.c')
-rw-r--r-- | drivers/base/regmap/regmap-w1.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/base/regmap/regmap-w1.c b/drivers/base/regmap/regmap-w1.c index 3a7d30b8c3ac..1fbaaad71ca5 100644 --- a/drivers/base/regmap/regmap-w1.c +++ b/drivers/base/regmap/regmap-w1.c @@ -215,8 +215,6 @@ struct regmap *__regmap_init_w1(struct device *w1_dev, return __regmap_init(w1_dev, bus, w1_dev, config, lock_key, lock_name); - - return NULL; } EXPORT_SYMBOL_GPL(__regmap_init_w1); @@ -233,8 +231,6 @@ struct regmap *__devm_regmap_init_w1(struct device *w1_dev, return __devm_regmap_init(w1_dev, bus, w1_dev, config, lock_key, lock_name); - - return NULL; } EXPORT_SYMBOL_GPL(__devm_regmap_init_w1); |