Re: [PATCH] rtc: rtc-mrst: Replace mdelay() with msleep() in mrst_read_time()
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2018-08-27 20:52:36
Also in:
lkml
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2018-08-27 20:52:36
Also in:
lkml
On 30/07/2018 21:59:03+0800, Jia-Ju Bai wrote:
mrst_read_time() is never called in atomic context. It calls mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by: Jia-Ju Bai <redacted> --- drivers/rtc/rtc-mrst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com