Skip to content
Commit 11ddbdfb authored by Dan Carpenter's avatar Dan Carpenter Committed by Alexandre Belloni
Browse files

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: 540d1e15 ("rtc: rc5t619: Add Ricoh RC5T619 RTC driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200407092852.GI68494@mwanda


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 944ed452
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment