Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp873662rdb; Wed, 6 Dec 2023 02:20:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRqFpiJs+CKlt2fD4BSIcAzkNE1+GxoludX8crwjfRWNdlffyYdPb50V60WUoL6rOi+oZ8 X-Received: by 2002:a05:6a20:be93:b0:18c:b464:eba3 with SMTP id gf19-20020a056a20be9300b0018cb464eba3mr321990pzb.7.1701858000158; Wed, 06 Dec 2023 02:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701858000; cv=none; d=google.com; s=arc-20160816; b=zLIzIdpcNYk1/VZNRYrmaBl2uFN53deUsoJOShxc+NkTsODBHGlcE80MYduicRrZVc PSlZ3R42YxhK9BKlUbo1KKcRhltzmrOoysKYKyDeAb+lV43RPftfV3+gtMh2B3L2g237 J9nV/7vBIxMV4yMYSQltUbINXABCrWu+9qH/7c9Qy5RtNxrVcuRoCXAwFLdGXVCFBxRz Nob+gt+OYFMeragQ5CrnU1eNb+z8/jgtbE2nGCYN+E3H2Vbr6MsAKTrUGZLESObRmrpm Mikr8ItjCIgNmIjqES8uTaYF8xpV+/YntozMDBbv5tLnGNJNuwiimyyLi9mUKzbRYER5 0nWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kTHbHHV9j8+k9IlmSMZU8yU+W+qTEqlgJ38mz0blqUc=; fh=sAlldSMcSKc9Aueulv1qCRlwjmyXS9g/S1OTQRP2Nm0=; b=KARHCYE1mplb3BrYIGH8qymioEbHp9LDhsoURya0gw6iXbAVCGpxZhJF2CmkFvxErM 3hRHgpsmiJkglR5UYqQt95TeVDesOaX/xEwe33RLB2wyUImW2Ysr/C9kn9+ZCiRc9Nnq YixMhZx23alrhRe9EceXyw5UeDG/qLYCTjFgCa658My1EoZQy37BPhwuFFb6vrmf/TrM 4l9THmMuqY5Zo3CjpWMhZz2tS3D92cD93Vq4OPcTQP10qDEb0Oo7Vtrs1gb4rcnk41lJ GWSAuqstQc6bxGPDqgq7O2lJLp12IrPcfsMWVbiNOKmz+w16aJ1APNVme7Mto7UVPIts 0lVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=m67S4TBW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id v1-20020a1709029a0100b001cf5c99a61csi10948555plp.180.2023.12.06.02.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 02:20:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=m67S4TBW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9D965817DD3A; Wed, 6 Dec 2023 02:19:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377656AbjLFKTf (ORCPT + 99 others); Wed, 6 Dec 2023 05:19:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377549AbjLFKTd (ORCPT ); Wed, 6 Dec 2023 05:19:33 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6888E112; Wed, 6 Dec 2023 02:19:39 -0800 (PST) Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 63DB66607337; Wed, 6 Dec 2023 10:19:37 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701857978; bh=mjgfItsOqP4PFb5uiNh38eRZZOSIpCl5Be6d6JwRK6k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=m67S4TBWJGoCE++hlGeXKmjI45cRDdU9lm8iaqdR7ahzfLo6OT6U3LO6cRR9S6bih uCj5BNEvpF3OYNQG3mKAhV3VX09ryyOUFrG8UjOiqK7CCx630PMfCj56NcCJc9zrzQ LBjEthQUPbth6qLOBk2nQEQqt7H0nA4L688Jrvbam9J0HJZ3uAFa4ebvA9qPAZmbCY 3Aluv2rA2Cv199JeYQEg9VW/scxbheo+pDRmgjZ4P2SQW4FV7V4EWLCdqgK3g16pjZ fTpdvPTr6AOr0Z0VoaZGSe0qeF4WIl3McFNXT6CJnTE+93DtnZ4Mi/fQMaWpDBDPIl GULkbwqENveWg== Message-ID: <3528639f-85a3-4756-b04b-c233f6c84276@collabora.com> Date: Wed, 6 Dec 2023 11:19:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] media: mediatek: vcodec: Drop unnecessary variable Content-Language: en-US To: Fei Shao , Hans Verkuil Cc: 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 References: <20231113123049.4117280-1-fshao@chromium.org> <20231113123049.4117280-3-fshao@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20231113123049.4117280-3-fshao@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 02:19:57 -0800 (PST) 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 format > identifier accordingly. > > Signed-off-by: Fei Shao That's probably just about personal preferences, as mem->size is not expected to change during the flow of those functions. That said, as much as you, I prefer not having this local copy as it's using (a very small amount of) memory for no real reason anyway, so: Reviewed-by: AngeloGioacchino Del Regno