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>
Sun, 20 Feb 2022 14:07:37 +0000 (14:07 +0000)
commit7c15a63c757c33677669830734b62ce415e5525b
treedb3c0f86e7f5bca1f253b3ece8c95f613ed875bd
parent3fd97ce485558cc7482b1ae4609a114080e733e2
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