mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue