From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Pan Bian <bianpan2016@163.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] rtc: snvs: fix an incorrect check of return value
Date: Fri, 5 May 2017 00:58:18 +0200 [thread overview]
Message-ID: <20170504225818.fjd47dlpdsi2fax6@piout.net> (raw)
In-Reply-To: <1492926204-9535-1-git-send-email-bianpan2016@163.com>
On 23/04/2017 at 13:43:24 +0800, Pan Bian wrote:
> Function devm_regmap_init_mmio() returns an ERR_PTR on error. However,
> in function snvs_rtc_probe() its return value is checked against NULL.
> This patch fixes it by checking the return value with IS_ERR().
>
> Signed-off-by: Pan Bian <bianpan2016@163.com>
> ---
> drivers/rtc/rtc-snvs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
prev parent reply other threads:[~2017-05-04 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 5:43 Pan Bian
2017-05-04 22:58 ` Alexandre Belloni [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=20170504225818.fjd47dlpdsi2fax6@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=a.zummo@towertech.it \
--cc=bianpan2016@163.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/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
all inboxes | Powered by JetHome®