mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
nvmem: core: don't check the return value of notifier chain call
blocking_notifier_call_chain() returns the value returned by the last
registered callback. A positive return value doesn't indicate an error
and an nvmem device should correctly register irrespective of any
notifier callback failures. Drop the retval check.
Fixes: bee1138bea
("nvmem: add a notifier chain")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
eadf249906
commit
f4853e1c32
1 changed files with 1 additions and 3 deletions
|
@ -688,9 +688,7 @@ struct nvmem_device *nvmem_register(const struct nvmem_config *config)
|
|||
if (rval)
|
||||
goto err_remove_cells;
|
||||
|
||||
rval = blocking_notifier_call_chain(&nvmem_notifier, NVMEM_ADD, nvmem);
|
||||
if (rval)
|
||||
goto err_remove_cells;
|
||||
blocking_notifier_call_chain(&nvmem_notifier, NVMEM_ADD, nvmem);
|
||||
|
||||
return nvmem;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue