[PATCH 6.1 190/208] nvmem: core: fix return value