Skip to content

Commit d34213e

Browse files
andy-shevdjbw
authored andcommitted
nvdimm/namespace: drop nested variable in create_namespace_pmem()
Kernel build bot reported: namespace_devs.c:1991:10: warning: Local variable 'uuid' shadows outer variable [shadowVariable] Refactor create_namespace_pmem() by dropping a nested version of the same variable. Fixes: d1c6e08 ("libnvdimm/labels: Add uuid helpers") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220607164937.33967-1-andriy.shevchenko@linux.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 6905310 commit d34213e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/nvdimm/namespace_devs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,8 +1712,6 @@ static struct device *create_namespace_pmem(struct nd_region *nd_region,
17121712
res->flags = IORESOURCE_MEM;
17131713

17141714
for (i = 0; i < nd_region->ndr_mappings; i++) {
1715-
uuid_t uuid;
1716-
17171715
nsl_get_uuid(ndd, nd_label, &uuid);
17181716
if (has_uuid_at_pos(nd_region, &uuid, cookie, i))
17191717
continue;

0 commit comments

Comments
 (0)