[rtc-linux] Re: [PATCH 1/1] rtc: snvs: fix an incorrect check of return value
From: Alexandre Belloni <hidden>
Date: 2017-05-04 22:58:31
Also in:
lkml
From: Alexandre Belloni <hidden>
Date: 2017-05-04 22:58:31
Also in:
lkml
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 <redacted> --- 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 -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.