Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp487158ybh; Wed, 18 Mar 2020 03:45:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsblSFUV5a7zg8tQcJEl9HcGncIwKIoVmxA7qfSzG3GmSAfAwDoqf6Mu6nwmr6U34lGdUwa X-Received: by 2002:a9d:6946:: with SMTP id p6mr3265952oto.224.1584528323760; Wed, 18 Mar 2020 03:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584528323; cv=none; d=google.com; s=arc-20160816; b=JnjZltIxs1qUoPQsYwWsZWU3cz1t9K0+SwEni+a7yllwKKtB3Eh2ZI5e5NsArroNsH RqdjNO/QUCxXPE7yNEE6U2VKjCJLZfZhRpW54PLq6jK5NwYLoKVosuai1z8+sJHY176v rRAIU605L6R6itIbtRNDI88vULrl03sjmruZcA1RPzy7Wp3HHoNU8u1xjf5nWiMYxcxL y9oAruPqFv71J6SPGB91ho1CobAyQN5NfbJdux9GFXgt4ZDQ30+phtjdpZ0mBR70HMXC 8nKZGpMaUc28BZvKHysdqpoKzkNqc+iwHPVgurguiWDfyvQT34UPkcPsSktSJBfD0GeN SljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BQe0MPgR5KUBG3e+o6NkpvWHvuwvTd1IT/cHoDTgokA=; b=eF6fRFPG+P63QsYwTTP0n/rui+dSMoyj0T93MGTNn0pVm8hNb4JW1McXl/tWbW2CYC re60We8qEMtp1uYi4BQjzNK1CNtlNMjx2gKYYZ5aAI+UtHpXOLiv1X23eKgiG7rubVE9 8VHNiGSiKSL7O2hkFrp24AwE53I/rlhE1lMqXFDeOT5sVi4xZonHR14CFGJDE5cHT07/ FI60TvQ/P6K91EHhEyvrVmYMROfswA7nb/UkLfrddsEJlxLpoY6wUzG+/iwebGq5dd7m ZPEyWXhKErcOvwVkOirLgSfd38q2HdxXbdXhgeSRG5PDkd60kA2MOKiFaMx1zKDqcURC 0Gaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i133si3177978oih.80.2020.03.18.03.45.11; Wed, 18 Mar 2020 03:45:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727674AbgCRKoI (ORCPT + 99 others); Wed, 18 Mar 2020 06:44:08 -0400 Received: from sauhun.de ([88.99.104.3]:46454 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgCRKoI (ORCPT ); Wed, 18 Mar 2020 06:44:08 -0400 Received: from localhost (p54B333FA.dip0.t-ipconnect.de [84.179.51.250]) by pokefinder.org (Postfix) with ESMTPSA id 33AAF2C097D; Wed, 18 Mar 2020 11:44:06 +0100 (CET) Date: Wed, 18 Mar 2020 11:44:05 +0100 From: Wolfram Sang To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: Tang Bin , linux@rempel-privat.de, s.hauer@pengutronix.de, shawnguo@kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers/i2c/busses/i2c-imx.c:remove duplicate print after platform_get_irq() Message-ID: <20200318104405.rsqiw5og4xbuv6n5@katana> References: <20200318100748.17540-1-tangbin@cmss.chinamobile.com> <20200318101844.55c273zh242ymxcf@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bce44n5wofewyr2x" Content-Disposition: inline In-Reply-To: <20200318101844.55c273zh242ymxcf@pengutronix.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bce44n5wofewyr2x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Uwe, > Maybe add a comment for the next person who wonders about an error path > without error message? Something like: >=20 > irq =3D platform_get_irq(pdev, 0); > if (irq < 0) > /* > * platform_get_irq() already issued an error message, so > * fail silently here. > */ > return irq; Hmm, too much boilerplate for my taste. I'd rather assume it will be printed during the call. > And to get some extra kudos mention the commit that modified > platform_get_irq() to emit a message in the commit log. Yes. Kind regards, Wolfram --bce44n5wofewyr2x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl5x+3UACgkQFA3kzBSg Kba8nA/+P5T/G4aR4JXxKUJpSsklVKMksLmr30FVYSwIDwRM+ZtiE1Gb5YlxIq2w xGrwNdKPkoYaYYfPeV51FgcQ0p6LcVF1SkgFxox8B8ga20m65uyu+/CoSeblzcJ+ J7OP6D1XHGezNJ75wD6rUO9buqqBhxDOQ1VvQsKxVN6V16Zc4TULuU5CZNh6KbnM h//fMAuKK2mubFJVYiDHZCeaFPgCLESrmYmuCup46fPkthkMwZbynpeXo23dvhd4 5rh8tB1n1DpCz4JICMfyaTlLMD53U3Lkq4UivUmwi3oU17rnhNqfYvggZ+gGmucz UNZGT9FiMCRzwidSU9WitQbF8CkkS7+0RhVRf/8T52GtZm8VroRg3apGfp+FpzP3 Ep/bFgZrBJuDCY/27JtiaGlF4qGSFis0ZvdOnneEC1pzwQ5WuaN0yJw6PdYq5W6X Hy2Bn1m9gsnI1DfEF47y6jlDgjmMAt0huqoTKwvWIAJnaE8SQfGIaHsB667c/Vo6 BEHCeewgbX9crZk5S7P6swVEXIoFAVZYnCAqFowunYx81dKn/VV/mHiuwVw6gy7A tnvZh1GvJGAzC5JibIhAfA6ZExGesQRR36XegKDiQm2YrLMH8l0qYmUjkYCWZjE4 Ejq+5Srx6Sxk+rZxdMmxA8stM2qhn+QFnUtZKJ4g6jdTYeI6720= =MP33 -----END PGP SIGNATURE----- --bce44n5wofewyr2x--