Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp873632rdb; Wed, 6 Dec 2023 02:19:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IETsVyV152qD/dpDxf4R2+H27XAFzuuRIwG5QVKuZcRZ5+ijNlbaXT0COomOdx/bPpDbM92 X-Received: by 2002:a05:6358:730b:b0:170:499a:a43e with SMTP id d11-20020a056358730b00b00170499aa43emr725504rwg.12.1701857994567; Wed, 06 Dec 2023 02:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701857994; cv=none; d=google.com; s=arc-20160816; b=mLf563CoY40mB7/k8Cu6zxKRV24vlQPeDYCmrayv/nkelSQI/msmADDnLPhUot7kc8 QZzn+tiUiVT8OgKKj4T72Bd84Lad8R4eMrs0uXrYFodqy/dpsxEO3zZFX11eqWS9bEv6 1KJp+vTXgtsE/xQ6FPCyKSR0Oa4FGMZbJxFj/1TBixI7PBqbcybzGEgd1MJrhW07KXOZ GWZkP264NYj9ki9hRk+h6YxPTJb8QWvC+AZhSnNP5Q4p2JhrR2Hk+/+1hxQmtSxmnarF zjRMZI6VusFBYMi9OjaFGEGXJmcEhl34VtrgVwM8JJe/5L8wjGdEOFl6Xt++xRYzsLTr 104g== 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=Z8lrG+jcUTi9EobmyHRVEo2x2vhn96kzwKXo4fjcrWc=; fh=Nof6sDi0OEWiqViXqUts0f9C28hPF/LFomo96XwA2uc=; b=s1ZVFWJBQjpvCctiB+p7WzXIMEt02askERtadPpTGgc5uZEIdOi+i1IKpqZUKRRVnb 5+yNJXEfpeq28Dn4vMBvNy2yIsjK058VgTPsN4jSRtwBA+uq1AT0KmWCmVq49E99yNcA p1i3f/Qea25jFa2v1/ouLYrKLPXT23COaaAL9kgpqqwNuU2oZppsL5g39b+2yR0UCNOM QMykWrmNv72D+Yc4oj9LlAkpwbvgC/m/q3aX5fL+hVdCZzq39kMRBu75hKqKQkduBBKI Rr8sCJ/j0Bn3NiiPOrVeCgcqZoTPKx9GKgj1JBEXC3snE6Ifd+yMW6AqmR/sK3fXGUxC IF8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Ge3ih24j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b13-20020a056a000a8d00b006cb68d85220si11403559pfl.286.2023.12.06.02.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 02:19:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Ge3ih24j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 152F080BB225; Wed, 6 Dec 2023 02:19:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377642AbjLFKTc (ORCPT + 99 others); Wed, 6 Dec 2023 05:19:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377549AbjLFKTa (ORCPT ); Wed, 6 Dec 2023 05:19:30 -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 33FAF109; Wed, 6 Dec 2023 02:19:37 -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 E879B6607326; Wed, 6 Dec 2023 10:19:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701857975; bh=IovYJ01Jivwam/qxWADM1HZ4UJMjvtHVmaPsaZqxoro=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Ge3ih24jaH9Ox/URbczBLz2DRMrZfkSWyobDWXa7+PBzEUH+zpDgasWrLMUcfbvEh h8tLwHEsOaQwlpVUWSj1AhstZRO8M17dTwROBWz0kfnZ8AU+oxIC+NUDb5visZyE03 NTslxdBQkMfXjXEe7rbrY0EsI6BfKxdg6+/4wJSc7zOH5G41z4C5CW6FkbhM9JR7Wp tAQVenJg98xI841kHPBZJW2YvYSzK8HZhMFcme/UIS2GFO7laGznCkZsl7OWECq7WM Q1EyFeH1N7G15Ua6YS6oFaMkPzYUZcn1r3JJUdRlcrzqXnsk1WBGcyce5I875U32ka 0shhZLA2THLkg== Message-ID: <449b9678-e3c2-4410-ac80-c50a1a25cc06@collabora.com> Date: Wed, 6 Dec 2023 11:19:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] media: mediatek: vcodec: Drop VA check against mtk_vcodec_mem_free() Content-Language: en-US To: Fei Shao , Hans Verkuil Cc: Andrew-CT Chen , Dan Carpenter , Irui Wang , Matthias Brugger , Mauro Carvalho Chehab , Nicolas Dufresne , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Tiffany Lin , Xiaoyong Lu , 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-5-fshao@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20231113123049.4117280-5-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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 02:19:48 -0800 (PST) Il 13/11/23 13:26, Fei Shao ha scritto: > Now mtk_vcodec_mem_free() handles the VA-is-NULL case without generating > excess error log, so we don't need to check that every time before using > it in the driver. > > Remove all the unnecessary if branches against mtk_vcodec_mem_free(). > > Signed-off-by: Fei Shao For the reasons explained in patch [3/4], I'd prefer to keep those checks. Cheers, Angelo