Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1636072 > unrolled thread

Re: [PATCH 1/1] rtc: snvs: fix an incorrect check of return value

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2017-05-05 01:00 +0200
Last post2017-05-05 01:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] rtc: snvs: fix an incorrect check of return value Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-05-05 01:00 +0200

#1636072 — Re: [PATCH 1/1] rtc: snvs: fix an incorrect check of return value

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2017-05-05 01:00 +0200
SubjectRe: [PATCH 1/1] rtc: snvs: fix an incorrect check of return value
Message-ID<tDxT3-1mh-3@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web