diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2021-06-22 21:16:21 +0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2021-06-23 17:21:14 +0800 |
commit | 78d5f2011e2acf8e2f259d2886f1ceb4d789e0be (patch) | |
tree | 3b5df3016001f416bfc9d1d0dc25a47e36077047 /drivers/nvme/nvme.c | |
parent | 757cc4b1b2725e445a94840aa6076f0f0d4f03b9 (diff) | |
download | u-boot-78d5f2011e2acf8e2f259d2886f1ceb4d789e0be.zip u-boot-78d5f2011e2acf8e2f259d2886f1ceb4d789e0be.tar.gz u-boot-78d5f2011e2acf8e2f259d2886f1ceb4d789e0be.tar.bz2 |
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>
Diffstat (limited to 'drivers/nvme/nvme.c')
-rw-r--r-- | drivers/nvme/nvme.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index d4b2860..f6465ea 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); |