[PATCH 0/2] rtc: Use PTR_ERR_OR_ZERO to replace the open code

From: zhong jiang
Date: Mon Aug 13 2018 - 07:43:31 EST


The issue is detected with the help of Coccinelle.

zhong jiang (2):
rtc:rtc-digicolor: Use PTR_ERR_OR_ZERO to replace the open code
rtc:rtc-ds1347: Use PTR_ERR_OR_ZERO to replace the open code

drivers/rtc/rtc-digicolor.c | 4 +---
drivers/rtc/rtc-ds1347.c | 5 +----
2 files changed, 2 insertions(+), 7 deletions(-)

--
1.7.12.4