summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sunplus.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-01-07 10:33:40 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-01-17 01:36:09 +0300
commit900ed72c8a190e8c0b87cb17abc645b8ec713011 (patch)
tree0a6c88b6422d51ae52d491f1c6675f4a122bcaef /drivers/rtc/rtc-sunplus.c
parent7372971c1be5b7d4fdd8ad237798bdc1d1d54162 (diff)
downloadlinux-900ed72c8a190e8c0b87cb17abc645b8ec713011.tar.xz
rtc: gamecube: Fix an IS_ERR() vs NULL check
The devm_kzalloc() function returns NULL on error, it doesn't return error pointers. Fixes: 86559400b3ef ("rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220107073340.GF22086@kili
Diffstat (limited to 'drivers/rtc/rtc-sunplus.c')
0 files changed, 0 insertions, 0 deletions