From: Bin Meng Date: Tue, 22 Jun 2021 13:16:21 +0000 (+0800) Subject: nvme: Don't clear nvme blk device's priv space X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=78d5f2011e2acf8e2f259d2886f1ceb4d789e0be;p=u-boot.git 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 --- diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index d4b2860d67..f6465ea7f4 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);