Skip to content
Snippets Groups Projects
Commit 59858d3d authored by Colin Ian King's avatar Colin Ian King Committed by Ross Zwisler
Browse files

libnvdimm, namespace: remove redundant initialization of 'nd_mapping'


Pointer nd_mapping is being initialized to a value that is never read,
instead it is being updated to a new value in all the cases where it
is being read afterwards, hence the initialization is redundant and
can be removed.

Cleans up clang warning:
drivers/nvdimm/namespace_devs.c:2411:21: warning: Value stored to
'nd_mapping' during its initialization is never rea

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
parent 23fbd7c7
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment