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:
parent
757cc4b1b2
commit
78d5f2011e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue