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 <bmeng.cn@gmail.com>
This commit is contained in:
Bin Meng 2021-06-22 21:16:21 +08:00
parent 757cc4b1b2
commit 78d5f2011e
1 changed files with 0 additions and 1 deletions

View File

@ -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);