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>
This commit is contained in:
Родитель
54ecb8f702
Коммит
a20db58f3e
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче