Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1577207rdb; Thu, 7 Dec 2023 03:16:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDuKWJGCRRgH39apJ9hpmtXBVrJtqrOXo1wGF+7nUlQ+4sc8+HqJk180ujWLB1zwX9cT1w X-Received: by 2002:a05:6358:9889:b0:170:17eb:14c4 with SMTP id q9-20020a056358988900b0017017eb14c4mr2345781rwa.52.1701947763085; Thu, 07 Dec 2023 03:16:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701947763; cv=none; d=google.com; s=arc-20160816; b=oSfvrL46kxtFx3LEAfxSOv9wIQlk4PznraavelKqcxaFIGkD2Nos/1W2GbKEYfkf1r 7z4bVqdcP59XIut7gcosw3om0COKdaRBMsZXDgJrtPp5hDFlZIqo7LOiAbuGL0hGoaTQ JDyFiSlDuyU53JSk7of2zDb/uk+1tz2Gc3ILg+yBdf/wFrmPUIDcIDQ3McOy/jVRma+J lG5fjsDCipmX9CM7Tqdk8pmQWrRxWeF/6i9+c4pi8/h8DWoWgEcMDbu3dkMypi0CA+2W fRIUZANDLlXNLRHcp6ikisnZG6XZBRhx89jxXTr5Xxzsw2m8a+2GBdNykdVgS7z90oDI +NPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+1zKx8JGuByRmZeIzOLjwU47rnrPjKnk2Jj1ReloFCE=; fh=lHjl0lo+VCxfCUCSywqgfLTGMFYtiOkf4nqiIgEk1ic=; b=SfY3d+Cl5xgnsTTfJT3Lcj1RIhmc0bHjt/LNjEptPqYTvCE7XxWFaX/4DPa2pdnewA MyiNY6bsG8M0A9/oXpl5Tto59QqsSuvzMHHLwJ1zu6p9o470JO5dJfPJdVgo7O1lEgia W3I4KkAHZIv8Nu7LIm1hTvXvBeYzX6nUSqiWKWOwXdL9u/n/UeM0aA2MqfN4nMsTefN3 iFFifF7b58gUBR+IcoLmtG6KoE5RYuEjPJqdyxXB+PncDftdJAdd3ZoOmfzpm30q+RS8 u85Tf+WK0NHBAmjZQp1LaTr5sF49D1ru4Ktl0W1wjrpvIYYmbs2Dx3AKoT11IU6W/YF7 qVjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JBhbQp65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j6-20020a056a00174600b006ce0f018e57si1062174pfc.155.2023.12.07.03.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 03:16:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JBhbQp65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9ADFB80BD504; Thu, 7 Dec 2023 03:15:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378884AbjLGLPG (ORCPT + 99 others); Thu, 7 Dec 2023 06:15:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232358AbjLGLPE (ORCPT ); Thu, 7 Dec 2023 06:15:04 -0500 Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CDC2FA for ; Thu, 7 Dec 2023 03:15:10 -0800 (PST) Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-4b2c2e77777so161138e0c.2 for ; Thu, 07 Dec 2023 03:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701947709; x=1702552509; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+1zKx8JGuByRmZeIzOLjwU47rnrPjKnk2Jj1ReloFCE=; b=JBhbQp65tjURrxy7jmLaTYH5H7RZYPGivQV66Ihw3eg3+U4XT9wuuyp0/FO8ZwidaD ewvbJ8nk3qU75sXVmmROHDio1NZtH0UL/J5BTyjN1YPZo9LWaSY6DfC8gtPhs/Bb0K+6 FKwxmYWTtZdv8CN2OEAx9CglbZl2lskU++SK0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701947709; x=1702552509; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+1zKx8JGuByRmZeIzOLjwU47rnrPjKnk2Jj1ReloFCE=; b=eUfx/A5hb392ZCTU5F4NEQndsRQ/qrY5FsFU9syU7E1rPlWsvU7jptqOoSUWlmKMYF ykTVOn1Ocj9udhHYC5zK3yN5Lf0hFa8fkkEI10GeMk+jf0uHTA/YyPFhtqeIpZLUBGQ+ 058m82xeaE2pZnxB3QgltfW1Pk3RrIzC7BrL8QlbgEdaab36+ikcu4n5uGmqrZm1wFnr d76six8CCLKyBr9S+YXCLWT7ZL446Y2LOZmL5C1Ati2pjVNHfBGlhl+WgpLmy0P4bJ5L MQkQacinqJEfRCvR2sO4ndj7riqzA+09/7wmMbq5PyjWYK4lh2ZbGfXGrPn/CHUfbEm2 ePcA== X-Gm-Message-State: AOJu0Yzl4AIj9mkFDt0m2JqTC3EA1BctskeS4trZ1kXWCyF0syCNj271 eCtYgp/ntGIP/SJVrEfgBwG24TB1Fm/T1wjEUJM= X-Received: by 2002:a05:6122:987:b0:4b2:d37e:16c8 with SMTP id g7-20020a056122098700b004b2d37e16c8mr2645372vkd.7.1701947709476; Thu, 07 Dec 2023 03:15:09 -0800 (PST) Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com. [209.85.222.47]) by smtp.gmail.com with ESMTPSA id x23-20020a056122119700b004b28dec2935sm51100vkn.20.2023.12.07.03.15.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Dec 2023 03:15:08 -0800 (PST) Received: by mail-ua1-f47.google.com with SMTP id a1e0cc1a2514c-7c471449998so200663241.1 for ; Thu, 07 Dec 2023 03:15:08 -0800 (PST) X-Received: by 2002:a05:6122:30a2:b0:49a:6dc0:5a89 with SMTP id cd34-20020a05612230a200b0049a6dc05a89mr2860131vkb.5.1701947707983; Thu, 07 Dec 2023 03:15:07 -0800 (PST) MIME-Version: 1.0 References: <20231113123049.4117280-1-fshao@chromium.org> <20231113123049.4117280-3-fshao@chromium.org> <3528639f-85a3-4756-b04b-c233f6c84276@collabora.com> In-Reply-To: <3528639f-85a3-4756-b04b-c233f6c84276@collabora.com> From: Fei Shao Date: Thu, 7 Dec 2023 19:14:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] media: mediatek: vcodec: Drop unnecessary variable To: AngeloGioacchino Del Regno Cc: Hans Verkuil , Andrew-CT Chen , Matthias Brugger , Mauro Carvalho Chehab , Nicolas Dufresne , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Tiffany Lin , Yunfei Dong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 03:15:18 -0800 (PST) Hi Angelo, On Wed, Dec 6, 2023 at 6:19=E2=80=AFPM AngeloGioacchino Del Regno wrote: > > Il 13/11/23 13:26, Fei Shao ha scritto: > > It's unclear why only mem->size has local copies without particular > > usage in mtk_vcodec_mem_alloc() and mtk_vcodec_mem_free(), and they > > seem removable. > > > > Drop them to make the code visually consistent, and update printk forma= t > > identifier accordingly. > > > > Signed-off-by: Fei Shao > > That's probably just about personal preferences, as mem->size is not expe= cted > to change during the flow of those functions. > > That said, as much as you, I prefer not having this local copy as it's us= ing > (a very small amount of) memory for no real reason anyway, so: Yes, and I think I should have mentioned this in the commit message... I'll revise that in the next version. Thanks, Fei > > Reviewed-by: AngeloGioacchino Del Regno > >