Skip to content
Commit 36a40c37 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Dan Williams
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220607152525.33468-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 32346491
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment