We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3234649 commit 36a40c3Copy full SHA for 36a40c3
drivers/nvdimm/namespace_devs.c
@@ -170,15 +170,12 @@ EXPORT_SYMBOL(nvdimm_namespace_disk_name);
170
171
const uuid_t *nd_dev_to_uuid(struct device *dev)
172
{
173
- if (!dev)
174
- return &uuid_null;
175
-
176
- if (is_namespace_pmem(dev)) {
+ if (dev && is_namespace_pmem(dev)) {
177
struct nd_namespace_pmem *nspm = to_nd_namespace_pmem(dev);
178
179
return nspm->uuid;
180
- } else
181
+ }
+ return &uuid_null;
182
}
183
EXPORT_SYMBOL(nd_dev_to_uuid);
184
0 commit comments