]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/hctosys.c
Merge tag 'printk-for-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek...
[linux.git] / drivers / rtc / hctosys.c
index ff2092a0d38ca2e9529853931cec457a510b4dfe..a74d0d890600a0b65eeceefee5d2c8d7f537422d 100644 (file)
@@ -1,13 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * RTC subsystem, initialize system time on startup
  *
  * Copyright (C) 2005 Tower Technologies
  * Author: Alessandro Zummo <a.zummo@towertech.it>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
-*/
+ */
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
@@ -33,7 +30,7 @@ static int __init rtc_hctosys(void)
        };
        struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE);
 
-       if (rtc == NULL) {
+       if (!rtc) {
                pr_info("unable to open rtc device (%s)\n",
                        CONFIG_RTC_HCTOSYS_DEVICE);
                goto err_open;
@@ -44,7 +41,6 @@ static int __init rtc_hctosys(void)
                dev_err(rtc->dev.parent,
                        "hctosys: unable to read the hardware clock\n");
                goto err_read;
-
        }
 
        tv64.tv_sec = rtc_tm_to_time64(&tm);