Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1067247rwl; Thu, 10 Aug 2023 06:06:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/6obuAEfLohL/REWDu3ydzWeLeNwhMqSqgPb+bJceWMz5OsuS5Z/vZWGUFFFcc5z9W16D X-Received: by 2002:a05:6a00:2489:b0:66a:48db:8f6a with SMTP id c9-20020a056a00248900b0066a48db8f6amr2952288pfv.12.1691672791217; Thu, 10 Aug 2023 06:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691672791; cv=none; d=google.com; s=arc-20160816; b=IREvwQgmHpprb5DpPjEvemjQd9QWV5PLz/khCDoX3bifc9eJMlJrR9MxwoRyFtiCp2 1/4QqP/sYJvlAR1jkhniaXgNKJjh+jIo1kTSb5mf8ptZtXWg2uwb2oUX++hPsjOY5Wrn bD9nCN0QYmV3XEwCIfKitlL20Kpia6B+eJ9zM7r3IMqD1Lz+vufEtSbBPabKVNS+QlQt 0DHykDi+wSY0hqcGXY7qfjFpTam+vHzpsGbn+vnHIX9xEn7hJhOMPkyLiVvE5ipbnM/i 7zIJqjOqRZw53vGG/nEhNF8q6pWP+QRZmAIIRxzitCW8rTFEiwHJ5k+jn4Q9iqYnPwV+ 0nZQ== 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; bh=ME4Fk+YG5Wg6oV/33TqW1eIUaceuEQbGfIPdCCEySHU=; fh=uF4Tv2KESDcnk06LBYvRrWH65HvCRvabo+iRhsQnKMc=; b=mjKSDvl3G0g4ijFePbTFMrjLM9iGd4ZfR/ci00xJkPStWMgJhHLcjBHB/Al6GTLJr0 Xr5VW/SF3wE66bl1V8niZwWjEuYvIV4yMd5EjZoNbOFWkv5SZCD4Pllw/Z2S6YVCr3st GrKTxPevqhVFCdh2F4FR7Ns0tVcYUTblPHQgihgPn8S6AdN5L11lR/Ha21Nc7UtlpNqh wEY0lQoZx2BGI7KXCvYQ2VT/uVDfpAJGKiHZh6igE8V46h+qkaRPYMQKeaCfw9HV2HhK jVor4cmffKAQj1ehW4qfQfB/d37eYTCjQN0IHxURBD4O1nvWyMPK54rF/a8v1J58f93/ Lc0g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ei45-20020a056a0080ed00b0068708093a99si1417690pfb.355.2023.08.10.06.06.15; Thu, 10 Aug 2023 06:06: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235378AbjHJLmc (ORCPT + 99 others); Thu, 10 Aug 2023 07:42:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbjHJLmb (ORCPT ); Thu, 10 Aug 2023 07:42:31 -0400 Received: from exchange.fintech.ru (exchange.fintech.ru [195.54.195.159]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BD52C6; Thu, 10 Aug 2023 04:42:29 -0700 (PDT) Received: from Ex16-01.fintech.ru (10.0.10.18) by exchange.fintech.ru (195.54.195.169) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 10 Aug 2023 14:42:26 +0300 Received: from [192.168.211.130] (10.0.253.138) by Ex16-01.fintech.ru (10.0.10.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 10 Aug 2023 14:42:25 +0300 Message-ID: <8a547455-1f5b-f3bf-3fcc-553760940deb@fintech.ru> Date: Thu, 10 Aug 2023 04:42:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] video/hdmi: convert *_infoframe_init() functions to void Content-Language: en-US To: Maxime Ripard CC: David Airlie , Daniel Vetter , "Maarten Lankhorst" , Matthias Brugger , Alex Deucher , "Alain Volmat" , Thomas Zimmermann , Jani Nikula , Joonas Lahtinen , Chun-Kuang Hu , Philipp Zabel , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , "Thierry Reding" , Mikko Perttunen , Jonathan Hunter , Emma Anholt , "Helge Deller" , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Ankit Nautiyal , , , , , , , , , References: <20230808180245.7474-1-n.zhandarovich@fintech.ru> From: Nikita Zhandarovich In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.0.253.138] X-ClientProxiedBy: Ex16-02.fintech.ru (10.0.10.19) To Ex16-01.fintech.ru (10.0.10.18) X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 Hello, On 8/10/23 01:13, Maxime Ripard wrote: > 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. >> >> 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. There is definitely no particular urgency to this change. Since these functions don't perform anything complex and aren't updated regularly, my main goal was to remove unnecessary (at the moment) checks and fix up their somewhat misleading descriptions. Cleaning up, in other words. But I understand your point of view. If you don't think this patch is warranted at this point, I totally understand. > >> Fixes: 2c676f378edb ("[media] hdmi: added unpack and logging functions for InfoFrames") > > I'm confused about that part. What does it fix exactly? > > Maxime I added the 'Fixes:' tag mostly as a requirement for patch's description. Once again, it doesn't "fix" anything broken as much as it cleans up stuff. Best regards, Nikita