nvdimm/namespace: return uuid_null only once in nd_dev_to_uuid()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 7 Jun 2022 15:25:25 +0000 (18:25 +0300)
committerDan Williams <dan.j.williams@intel.com>
Thu, 14 Jul 2022 18:23:36 +0000 (11:23 -0700)
commit36a40c37389c7a1bef3f1024c55c056304acf439
tree2089d9da3c371f16042893aa302484c8839c12ab
parent32346491ddf24599decca06190ebca03ff9de7f8
nvdimm/namespace: return uuid_null only once in nd_dev_to_uuid()

Refactor nd_dev_to_uuid() in order to make code shorter and cleaner
by joining conditions and hence returning uuid_null only once.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220607152525.33468-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c