mbox series

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

Message ID 1534159885-25364-1-git-send-email-zhongjiang@huawei.com
Headers show
Series rtc: Use PTR_ERR_OR_ZERO to replace the open code | expand

Message

zhong jiang Aug. 13, 2018, 11:31 a.m. UTC
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(-)