Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp789576rwl; Thu, 10 Aug 2023 01:20:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVUh8fgLtcdtPJhQUP6psa083sNUUm0VqF09GDv3F6WQ1jlmj4tW6ImVy19oAsZQXw8xYi X-Received: by 2002:a17:906:cc:b0:99d:dfd:a5ba with SMTP id 12-20020a17090600cc00b0099d0dfda5bamr1437015eji.43.1691655631343; Thu, 10 Aug 2023 01:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691655631; cv=none; d=google.com; s=arc-20160816; b=fH+yvGGsGIO8IEMNZGBz3mBBRnjybAEu5H9nObfstRUMCQ9ByilRTjlCaNsEsZgD8X Q2ylQKsx/VXApz8c6Db2/tM2QZ+ijanCS28aMuogR428ZJG2EqCFRSytyGl00kEAryLo i+NGaWFcDHX9SX5OmUJc1TR/gRPPTiMGiVT6RZKi9efYZIZwDleuCrrHxnscdSG84WDJ oOmmSjIHOlvqzFohUO268THEq7iCHqJxhgiQl9vYVT1YbyLsyqHP74SF9RxcguIgUHtQ A9Te4JprAKhWw23DxPt9H92NAlZFBwQ85dJg5irhJ4pw+rXN22QHuTGhKFA1fHC/vLEs AaiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gXVZ68cdpgp0Oc06O+iDMDHFl7uPsJSDhRHvYoDqwWY=; fh=/gbRBeQT3K1cVt/6wQDxtUcZjC+m9JdJCOCPqDfR+Lw=; b=p+avJWTcmEvG3sdE3Hsoth0j8zMyUoM5cu//9bOWsFiqE4eyZ2vfe6I2v0zLpy23MQ sv0GEajaSQznKOgziikvmEeS+6nSWunjVj4QdvEnaTemGW04S2Iu18mFFWQv4J3/vgS1 ynw18M4nxlUIXuK2tBb2gjFdb6Wkc2+MmdgA0d7S7tW00G9kVd7Sz94MRiSGOvrsnLuD uO5F3t5gGS7MxnmO/QXXFLAjGBPynKQwRBvAx+kOQuU5xeMek1oUxaHEJ+cL1gKFEmS6 cv7ODgfk9t0vs9yD5O3QtmMgTQs3uyNpmisr51YANnEa4q2PbdQ2tyUCFkr47iwgX2MF 2dew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bSQJ3MDG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d25-20020a17090648d900b0098884f86e43si1066218ejt.1053.2023.08.10.01.20.05; Thu, 10 Aug 2023 01:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bSQJ3MDG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233771AbjHJINc (ORCPT + 99 others); Thu, 10 Aug 2023 04:13:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232953AbjHJINb (ORCPT ); Thu, 10 Aug 2023 04:13:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FCF5ED; Thu, 10 Aug 2023 01:13:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AE570652FB; Thu, 10 Aug 2023 08:13:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83019C433D9; Thu, 10 Aug 2023 08:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691655210; bh=gXVZ68cdpgp0Oc06O+iDMDHFl7uPsJSDhRHvYoDqwWY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bSQJ3MDGIPvJ0HMdmJojPNOITtyTnIaObs3s8neo3b0T4ZqDx67kFFQVnWaIlvSq0 XbT2KMjZ4kRCPECjY9wzhAZIaEpnY8sOrR6YoMMkBhomarPH2yUscPuKDgMwVXygvL 931+QUJn8LtveKV+Uc+R4qqJYghlHkz7D5jRSTwBFNp5MlKKPGF92rAFNid/YCWjt5 wdoO/S0kBgRa9gvVkt8X79r5m0kQBttlpf/RvPowbcQWJMqkxTWaUIF7ln+O7O75gx +/Z3QFtPJJd7fJuxGaoYpZUxAebuqPOXjPYpPpP2zE6JtAnsUtzsJNw2q7VYEwiMAs Rw5p2OsG22CmA== Date: Thu, 10 Aug 2023 10:13:26 +0200 From: Maxime Ripard To: Nikita Zhandarovich Cc: David Airlie , Daniel Vetter , Maarten Lankhorst , Matthias Brugger , Alex Deucher , Alain Volmat , Thomas Zimmermann , Jani Nikula , Joonas Lahtinen , Chun-Kuang Hu , Philipp Zabel , Christian =?utf-8?B?S8O2bmln?= , "Pan, Xinhui" , Thierry Reding , Mikko Perttunen , Jonathan Hunter , Emma Anholt , Helge Deller , Ville =?utf-8?B?U3lyasOkbMOk?= , Ankit Nautiyal , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, amd-gfx@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-fbdev@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] video/hdmi: convert *_infoframe_init() functions to void Message-ID: References: <20230808180245.7474-1-n.zhandarovich@fintech.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="syn7hsjtm3zubtz2" Content-Disposition: inline In-Reply-To: <20230808180245.7474-1-n.zhandarovich@fintech.ru> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --syn7hsjtm3zubtz2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Aug 08, 2023 at 11:02:45AM -0700, Nikita Zhandarovich wrote: > Four hdmi_*_infoframe_init() functions that initialize different > types of hdmi infoframes only return the default 0 value, contrary to > their descriptions. Yet these functions are still unnecessarily checked > against possible errors in case of failure. >=20 > Remove redundant error checks in calls to following functions: > - hdmi_spd_infoframe_init > - hdmi_audio_infoframe_init > - hdmi_vendor_infoframe_init > - hdmi_drm_infoframe_init > Also, convert these functions to 'void' and fix their descriptions. I'm not sure what value it actually adds. None of them return any errors, but very well might if we started to be a bit serious about it. Since the error handling is already there, then I'd rather leave it there. > Fixes: 2c676f378edb ("[media] hdmi: added unpack and logging functions fo= r InfoFrames") I'm confused about that part. What does it fix exactly? Maxime --syn7hsjtm3zubtz2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZNScJgAKCRDj7w1vZxhR xSWxAPkBKpcYa8fvgV9S3h2fxehetHD5UXS8LuBJb/F6EtKr5QEA1tv3DgElGqJD Vd+9ES535Sb39MjXfvkcbNMyPRxsjQU= =6V+A -----END PGP SIGNATURE----- --syn7hsjtm3zubtz2--