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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7A469C433EF for ; Fri, 22 Apr 2022 08:55:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6870382DD7; Fri, 22 Apr 2022 10:55:33 +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="FqKZYKPI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C515483AEB; Fri, 22 Apr 2022 10:55:31 +0200 (CEST) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 4F3EB81DD3 for ; Fri, 22 Apr 2022 10:55:29 +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-yw1-x1134.google.com with SMTP id 00721157ae682-2ebf4b91212so78481307b3.8 for ; Fri, 22 Apr 2022 01:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PvhMIvAo72D17xmhbiNbXc9T+fF2IDXDR6ns9mvUsRk=; b=FqKZYKPIPzIpcW08cjQgMLQGxL1MspNS3uOdSBcoqDpFLWEnpxWX985dgYjRryrlwE 4WoMvcsqxy6YG1IjbF7GXEh3qLaxFv9vWXLrBnEukyO5ChkoPkulUUIji8GkYhunN21V SAODP2X2Z9a6fcPcWtZSujd4s6Qd1xV3SV8b4PVS6dD0HyAOo0weo2tqjrrXowdtXVew kuvrEgNCXQkpVm7LQSrCNkuZGt2rC3wwIz4QFj8LJatqSs4KoeTwf3nCtuIgb0OF9sR9 cjimmh3vKGJoMgup2GK3rn1L1LzBTMTfMZFW4ZIaa/ci6F4tbIfnQq/spalPbSM3/nwV 2Gcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PvhMIvAo72D17xmhbiNbXc9T+fF2IDXDR6ns9mvUsRk=; b=FCApBr8EtowBbYY7+b9jUuDVYujLN7t4roGwBpkbBCF51pXGlnx8q7z0By+DXIlWeR oddS9YNPOhyM+OSDj+U825YcPrhVjhwcjwk68aCd+43QTiiCsadwHxvaGMgC6CW/rn35 6YlHPRwGvUEjl7k1rbKojEiXRYANVIStp+DNE1AHnK6BrJgvrrgjO1xSeh8R2Lspwcqb rNVAOrkVBa/rqmhu8FnRKxWE1myWm2Zm1p7XsIg0Jzo3ghDNqIdXbamrszA2BZFODYqd YFsoCh/12DjJq0Qhxp/uvhx1r6Bc8NiBz8yAGvYymKc/EBoz3HkEDPFtUvMRlKKORcKw LjUA== X-Gm-Message-State: AOAM531D7z0TPO0PVJqfq5qhWQtoAdYJj97kh3T4zt9iQznz4Jswvvb7 09h+7G55rkeF3Yw4Az7UtQQyZAuUMMtclQdzlwM= X-Google-Smtp-Source: ABdhPJzZqY/XD5py4PgS6lJ4uCqvs9xnY4TytxcoWuO0NuMXMdRhUy1DJgBym/iMu0R3i2PeV9sFuM7J+4EQJNTc3gU= X-Received: by 2002:a81:2443:0:b0:2eb:4ffe:fab2 with SMTP id k64-20020a812443000000b002eb4ffefab2mr3666431ywk.330.1650617728129; Fri, 22 Apr 2022 01:55:28 -0700 (PDT) MIME-Version: 1.0 References: <20220413142137.560987-1-ascull@google.com> <20220413142137.560987-2-ascull@google.com> In-Reply-To: <20220413142137.560987-2-ascull@google.com> From: Bin Meng Date: Fri, 22 Apr 2022 16:55:16 +0800 Message-ID: Subject: Re: [PATCH v2 01/12] virtio_ring: Merge identical variables To: Andrew Scull Cc: U-Boot Mailing List , Simon Glass , Tom Rini Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean On Wed, Apr 13, 2022 at 10:22 PM Andrew Scull wrote: > > The variables `total_sg` and `descs_used` have the same value. Replace > the few uses of `total_sg` with `descs_used` to simplify the situation. > > Signed-off-by: Andrew Scull > Reviewed-by: Simon Glass > --- > drivers/virtio/virtio_ring.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > Reviewed-by: Bin Meng