mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
regmap: Remove superfluous check for !config in __regmap_init()
The first thing __regmap_init() do is check if config is non-NULL,
so there is no need to check for this again later.
Fixes: d77e745613 ("regmap: Add bulk read/write callbacks into regmap_config")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/a154d9db0f290dda96b48bd817eb743773e846e1.1755090330.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
886f42ce96
commit
5c36b86d2b
|
|
@ -827,7 +827,7 @@ struct regmap *__regmap_init(struct device *dev,
|
|||
map->read_flag_mask = bus->read_flag_mask;
|
||||
}
|
||||
|
||||
if (config && config->read && config->write) {
|
||||
if (config->read && config->write) {
|
||||
map->reg_read = _regmap_bus_read;
|
||||
if (config->reg_update_bits)
|
||||
map->reg_update_bits = config->reg_update_bits;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user