nvmem: core: Check input parameter for NULL in nvmem_unregister()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Jan 2022 18:00:38 +0000 (20:00 +0200)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 25 Jan 2022 10:28:08 +0000 (10:28 +0000)
commitf2022a29ebe55439eb766f2d99358e20e29ba300
treee2785bd3e7d97b85b95146789cf64c9d7c30e90d
parentd9d667633f4d5979808fc6155394424410808542
nvmem: core: Check input parameter for NULL in nvmem_unregister()

nvmem_unregister() frees resources and standard pattern is to allow
caller to not care if it's NULL or not. This will reduce burden on
the callers to perform this check.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
drivers/nvmem/core.c