From mboxrd@z Thu Jan 1 00:00:00 1970 From: Saiyam Doshi Subject: Re: [PATCH 2/3] i2c: qup: Remove dev_err() log after platform_get_irq*() failure Date: Tue, 17 Sep 2019 21:55:08 +0530 Message-ID: <20190917162508.GB5388@SD> References: <20190916185857.GA14093@SD> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Markus Elfring Cc: Andy Gross , linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org List-Id: linux-i2c@vger.kernel.org On Tue, Sep 17, 2019 at 05:28:47PM +0200, Markus Elfring wrote: > > The semantic patch that makes this report is available > > in scripts/coccinelle/api/platform_get_irq.cocci. > > > > Found using - http://coccinelle.lip6.fr/ > > Can a tag like “Generated by: scripts/coccinelle/api/platform_get_irq.cocci” > be more helpful than the other description variant? Okay, will update the changelog. > > if (qup->irq < 0) { > > - dev_err(qup->dev, "No IRQ defined\n"); > > return qup->irq; > > } > How do you think about to omit the curly brackets here after only a single > statement would be used in the if branch? Completely missed that! I will update and resend. -Saiyam