summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorBin Meng <[email protected]>2021-06-22 21:16:21 +0800
committerBin Meng <[email protected]>2021-06-23 17:21:14 +0800
commit78d5f2011e2acf8e2f259d2886f1ceb4d789e0be (patch)
tree3b5df3016001f416bfc9d1d0dc25a47e36077047 /drivers/nvme
parent757cc4b1b2725e445a94840aa6076f0f0d4f03b9 (diff)
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 <[email protected]>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/nvme.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c
index d4b2860d67f..f6465ea7f48 100644
--- a/drivers/nvme/nvme.c
+++ b/drivers/nvme/nvme.c
@@ -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);