On 07/04/2020 12:28:52+0300, Dan Carpenter wrote: > The devm_kzalloc() function returns NULL on error, it doesn't return > error pointers so this check doesn't work. > > Fixes: 540d1e15393d ("rtc: rc5t619: Add Ricoh RC5T619 RTC driver") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > drivers/rtc/rtc-rc5t619.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com