All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: jhbird.choi@gmail.com
Cc: linux-samsung-soc@vger.kernel.org,
	Kukjin Kim <kgene.kim@samsung.com>,
	Jonghwan Choi <jhbird.choi@samsung.com>
Subject: Re: [PATCH] ARM: SAMSUNG: Should check for IS_ERR(clk) instead of NULL
Date: Wed, 18 Apr 2012 17:12:28 -0700	[thread overview]
Message-ID: <4F8F586C.3020401@samsung.com> (raw)
In-Reply-To: <1334722134-14545-1-git-send-email-jhbird.choi@samsung.com>

jhbird.choi@gmail.com wrote:
> From: Jonghwan Choi<jhbird.choi@samsung.com>
> 
> On the error condition clk_get() returns ERR_PTR().
> 
> Signed-off-by: Jonghwan Choi<jhbird.choi@samsung.com>
> ---
>   .../arm/plat-samsung/include/plat/watchdog-reset.h |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/plat-samsung/include/plat/watchdog-reset.h b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
> index f19aff1..bc4db9b 100644
> --- a/arch/arm/plat-samsung/include/plat/watchdog-reset.h
> +++ b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
> @@ -25,7 +25,7 @@ static inline void arch_wdt_reset(void)
> 
>   	__raw_writel(0, S3C2410_WTCON);	  /* disable watchdog, to be safe  */
> 
> -	if (s3c2410_wdtclk)
> +	if (!IS_ERR(s3c2410_wdtclk))

Yeah, right. BTW don't we need to check NULL here?

>   		clk_enable(s3c2410_wdtclk);
> 
>   	/* put initial values into count and data */

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

  reply	other threads:[~2012-04-19  0:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18  4:08 [PATCH] ARM: SAMSUNG: Should check for IS_ERR(clk) instead of NULL jhbird.choi
2012-04-19  0:12 ` Kukjin Kim [this message]
2012-04-19  8:25   ` Sylwester Nawrocki
2012-04-19  8:25     ` Sylwester Nawrocki
2012-04-19  9:03     ` Russell King - ARM Linux
2012-04-19  9:03       ` Russell King - ARM Linux
2012-04-20 10:25       ` Sylwester Nawrocki
2012-04-20 10:25         ` Sylwester Nawrocki
2012-06-21  0:18 ` Kukjin Kim

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=4F8F586C.3020401@samsung.com \
    --to=kgene.kim@samsung.com \
    --cc=jhbird.choi@gmail.com \
    --cc=jhbird.choi@samsung.com \
    --cc=linux-samsung-soc@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.