Home
last modified time | relevance | path

Searched hist:"11 ddbdfb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/rtc/
H A Drtc-rc5t619.c11ddbdfb Tue Apr 07 04:28:52 CDT 2020 Dan Carpenter <dan.carpenter@oracle.com> rtc: rc5t619: Fix an ERR_PTR vs NULL check

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@oracle.com>
Link: https://lore.kernel.org/r/20200407092852.GI68494@mwanda
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
11ddbdfb Tue Apr 07 04:28:52 CDT 2020 Dan Carpenter <dan.carpenter@oracle.com> rtc: rc5t619: Fix an ERR_PTR vs NULL check

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@oracle.com>
Link: https://lore.kernel.org/r/20200407092852.GI68494@mwanda
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>