From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f169.google.com ([209.85.212.169]:55659 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871AbaLPLXR (ORCPT ); Tue, 16 Dec 2014 06:23:17 -0500 Received: by mail-wi0-f169.google.com with SMTP id r20so13317241wiv.0 for ; Tue, 16 Dec 2014 03:23:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1418721107-5429-3-git-send-email-roberta.dobrescu@gmail.com> References: <1418721107-5429-1-git-send-email-roberta.dobrescu@gmail.com> <1418721107-5429-3-git-send-email-roberta.dobrescu@gmail.com> Date: Tue, 16 Dec 2014 13:23:15 +0200 Message-ID: Subject: Re: [PATCH 2/3] iio: frequency: Remove unnecessary braces around single statement block From: Daniel Baluta To: Roberta Dobrescu Cc: Jonathan Cameron , "linux-iio@vger.kernel.org" , "octavian.purdila@intel.com" , Daniel Baluta , Lars-Peter Clausen , Michael.Hennerich@analog.com, Hartmut Knaack , Peter Meerwald Content-Type: text/plain; charset=UTF-8 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On Tue, Dec 16, 2014 at 11:11 AM, Roberta Dobrescu wrote: > This patch fixes the following checkpatch.pl warning: > WARNING: braces {} are not necessary for single statement blocks > > Signed-off-by: Roberta Dobrescu Reviewed-by: Daniel Baluta > --- > drivers/iio/frequency/adf4350.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/iio/frequency/adf4350.c b/drivers/iio/frequency/adf4350.c > index 2b301eb..10a0dfc 100644 > --- a/drivers/iio/frequency/adf4350.c > +++ b/drivers/iio/frequency/adf4350.c > @@ -611,9 +611,8 @@ static int adf4350_remove(struct spi_device *spi) > if (st->clk) > clk_disable_unprepare(st->clk); > > - if (!IS_ERR(reg)) { > + if (!IS_ERR(reg)) > regulator_disable(reg); > - } > > return 0; > } > -- > 1.9.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html