nvmem: core: don't check the return value of notifier chain call
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 15 Feb 2019 10:42:59 +0000 (11:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Feb 2019 13:50:11 +0000 (14:50 +0100)
commitf4853e1c321edb48af229ad5ac85076790d34968
treeb1b2f577d3e6e517c86dd15940cec0fe1f6d9d19
parenteadf249906495d94a8908c7840319d1ffcef8057
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: bee1138bea15 ("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>
drivers/nvmem/core.c