Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Arvind Yadav <arvind.yadav.cs@gmail.com>,
	b.zolnierkie@samsung.com, tj@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH v4] pata_pdc2027x: Fix pdc_adjust_pll() to return the error value
Date: Wed, 6 Dec 2017 12:41:06 +0300	[thread overview]
Message-ID: <ff019fe7-28e8-5657-1952-9485886b348a@cogentembedded.com> (raw)
In-Reply-To: <78542c42dcd2f21f6f7c01984061628fb4f19a42.1512499639.git.arvind.yadav.cs@gmail.com>

Hello!

On 12/5/2017 9:50 PM, Arvind Yadav wrote:

> This change is to ensure that function pdc_adjust_pll() returns the
> error value to avoid the unnecessary error check for pdc_hardware_init()
> in pdc2027x_reinit_one().
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
> changes in v2 :
>                 Make function return type 'void' instead of 'int.
>                 Add sapce between ':'.
> changes in v3 :
>                 Fix the checkpatch.pl errors in a sperate patch.
> changes in v4 :
>                 return the error value from pdc_adjust_pll()
> 
>   drivers/ata/pata_pdc2027x.c | 13 ++++++-------
>   1 file changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c
> index 82bfd51..eca16b0 100644
> --- a/drivers/ata/pata_pdc2027x.c
> +++ b/drivers/ata/pata_pdc2027x.c
[...]
> @@ -664,9 +664,8 @@ static int pdc_hardware_init(struct ata_host *host, unsigned int board_idx)
>   	dev_info(host->dev, "PLL input clock %ld kHz\n", pll_clock/1000);
>   
>   	/* Adjust PLL control register */
> -	pdc_adjust_pll(host, pll_clock, board_idx);
> +	return pdc_adjust_pll(host, pll_clock, board_idx);
>   

    Please also remove this empty line (between *return* and }).

> -	return 0;
>   }
>   
>   /**

MBR, Sergei

      reply	other threads:[~2017-12-06  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-05 18:50 [PATCH v4] pata_pdc2027x: Fix pdc_adjust_pll() to return the error value Arvind Yadav
2017-12-06  9:41 ` Sergei Shtylyov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff019fe7-28e8-5657-1952-9485886b348a@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=arvind.yadav.cs@gmail.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox