Skip to content
Snippets Groups Projects
Commit 78d5f201 authored by Bin Meng's avatar Bin Meng
Browse files

nvme: Don't clear nvme blk device's priv space


A udevice's priv space is cleared in alloc_priv() in the DM core.
Don't do it again in its probe() routine.

Signed-off-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
parent 757cc4b1
No related branches found
No related tags found
No related merge requests found
......@@ -705,7 +705,6 @@ static int nvme_blk_probe(struct udevice *udev)
if (!id)
return -ENOMEM;
memset(ns, 0, sizeof(*ns));
ns->dev = ndev;
/* extract the namespace id from the block device name */
ns->ns_id = trailing_strtol(udev->name);
......
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