Thread (3 messages) flat view 3 messages, 3 authors, 2017-02-11

[PATCH -next] rtc: sun6i: Fix return value check in sun6i_rtc_clk_init()

From: Maxime Ripard <hidden>
Date: 2017-02-09 07:40:59
Also in: linux-rtc, lkml

On Thu, Feb 09, 2017 at 12:16:13AM +0000, Wei Yongjun wrote:
From: Wei Yongjun <redacted>

In case of error, the function of_io_request_and_map() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator")
Signed-off-by: Wei Yongjun <redacted>
Acked-by: Maxime Ripard <redacted>

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170209/a15a4a4f/attachment-0001.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help