From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DB57C2B9F4 for ; Tue, 22 Jun 2021 13:17:17 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F22636112D for ; Tue, 22 Jun 2021 13:17:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F22636112D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7DE95829B9; Tue, 22 Jun 2021 15:16:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KvhOIZql"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85FF0829C4; Tue, 22 Jun 2021 15:16:48 +0200 (CEST) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2397680F32 for ; Tue, 22 Jun 2021 15:16:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pl1-x62c.google.com with SMTP id i4so6718281plt.12 for ; Tue, 22 Jun 2021 06:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DNnR6iW8SNu9UmQd+CCKTLV4tyG+WMCDJqFcXgZBJKY=; b=KvhOIZql+1v6rWqAx3eBJwRx66WQzFfszlulSNixFSQBxtAAy5fLxLzJ1vKj3ewhq7 ESofiMflXZ+bFIU09lq8Lcm4CeFq3PRr4YIAFGuJCwNtCxouVwiJV+ZJSLiYLLDKmpRq BW3SD4hyjDmEQ4ywof0GNjDvnEADeNqBFev6ID7RLPfWPTG+B10rJWxR5ZzN7ILHisls Cg91sher4msDz7mVLRDF/91Z+ZAvXurQ1U3PiCLeljgywPMkeyjfWZimGBcAFFS/MEI+ GYzRtqB9lvAFolh8qXw3ue8ZrNCxEuQ04g+c2skHWEfL6m+ifjKR3ktIjJ1WeZNuAMYw LWmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DNnR6iW8SNu9UmQd+CCKTLV4tyG+WMCDJqFcXgZBJKY=; b=XA2BEi27YY66i1gwJ3+CMja3se80L2JCm1jdWWNupSababqmWBwI2P6yKGO+4O5T7A OfRwX8hRhSgvVsLk/AejvVmF1EOHRdAFm5ZXIeCut6SIkJasBP7XkkECElGjH6ts+P40 q3PWSVn9E6/eR+ae71M8Pzm2zByvO1K3JQ3W02+Q8fnqY253g0tPwnaFv/q4sOoiBK2I 1ovPBrd3CorntuFA8Z/Qtgxmlyezr963WFWQd6YO0pwL6rhUZFOb8Omh76mgsLQBNDxf nGXtkWLrU9Dp2CiRYKDE1wtw2iMbwD18ZS4TJlJGkyR9rEOOdGrw7WugIUJSXj2Mm3Ib gXDw== X-Gm-Message-State: AOAM533TM7uFIow8wLuNHOPON0eVTz3BJtTf4vtZLmTIV2nHGYzYPk0J NsZsFPN6CNR1TbidvcwgHPA= X-Google-Smtp-Source: ABdhPJxBliYalagfV2OJmRKet+nUuIEBViE7U2Lm06FQZ8QIm7Y2Cn8LirDLOzslS7NdR2e9MWA6Pg== X-Received: by 2002:a17:90b:a4e:: with SMTP id gw14mr1653128pjb.223.1624367801751; Tue, 22 Jun 2021 06:16:41 -0700 (PDT) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id j24sm18456482pfe.58.2021.06.22.06.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 06:16:41 -0700 (PDT) From: Bin Meng To: Tom Rini , u-boot@lists.denx.de Cc: Bin Meng Subject: [PATCH v2 5/7] nvme: Don't clear nvme blk device's priv space Date: Tue, 22 Jun 2021 21:16:21 +0800 Message-Id: <20210622131623.21265-5-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210622131623.21265-1-bmeng.cn@gmail.com> References: <20210622131623.21265-1-bmeng.cn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 --- Changes in v2: - new patch: Don't clear nvme blk device's priv space drivers/nvme/nvme.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index e2e13dbf66..0527198aa6 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -706,7 +706,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); -- 2.25.1