diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-20 07:59:09 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-04 04:07:08 -0400 |
commit | 606cc43c720bdef01a22c9d221434c635139d84e (patch) | |
tree | fcb6a8c1a393aee18894191db8e5893dbf76e3a9 /drivers/rtc/hctosys.c | |
parent | 6875404fdb44f5353ef374c7c95c7701862fe2b3 (diff) |
rtc: core: correct trivial checkpatch warnings
Correct trivial checkpatch warnings, mostly whitespace issues and
unbalanced braces.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/hctosys.c')
-rw-r--r-- | drivers/rtc/hctosys.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c index eacbe500c44b..a74d0d890600 100644 --- a/drivers/rtc/hctosys.c +++ b/drivers/rtc/hctosys.c | |||
@@ -30,7 +30,7 @@ static int __init rtc_hctosys(void) | |||
30 | }; | 30 | }; |
31 | struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); | 31 | struct rtc_device *rtc = rtc_class_open(CONFIG_RTC_HCTOSYS_DEVICE); |
32 | 32 | ||
33 | if (rtc == NULL) { | 33 | if (!rtc) { |
34 | pr_info("unable to open rtc device (%s)\n", | 34 | pr_info("unable to open rtc device (%s)\n", |
35 | CONFIG_RTC_HCTOSYS_DEVICE); | 35 | CONFIG_RTC_HCTOSYS_DEVICE); |
36 | goto err_open; | 36 | goto err_open; |
@@ -41,7 +41,6 @@ static int __init rtc_hctosys(void) | |||
41 | dev_err(rtc->dev.parent, | 41 | dev_err(rtc->dev.parent, |
42 | "hctosys: unable to read the hardware clock\n"); | 42 | "hctosys: unable to read the hardware clock\n"); |
43 | goto err_read; | 43 | goto err_read; |
44 | |||
45 | } | 44 | } |
46 | 45 | ||
47 | tv64.tv_sec = rtc_tm_to_time64(&tm); | 46 | tv64.tv_sec = rtc_tm_to_time64(&tm); |