diff options
author | Alexandre Belloni | 2017-09-04 22:46:07 +0200 |
---|---|---|
committer | Alexandre Belloni | 2017-09-05 09:55:05 +0200 |
commit | e69c056714974733aeb3ff114e9d434ea864d818 (patch) | |
tree | 535626136c1a7764034fd861b5d725ffb4962520 /drivers/rtc | |
parent | 4057a66e5333bf487c35a37119e3012a4b318e22 (diff) |
rtc: ds1307: fix braces
Fix unnecessary or unbalanced braces.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index bac0f9ec9351..9df50db228c6 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -1667,9 +1667,8 @@ read_rtc: } ds1307->rtc = devm_rtc_allocate_device(ds1307->dev); - if (IS_ERR(ds1307->rtc)) { + if (IS_ERR(ds1307->rtc)) return PTR_ERR(ds1307->rtc); - } if (ds1307_can_wakeup_device && !want_irq) { dev_info(ds1307->dev, @@ -1688,8 +1687,9 @@ read_rtc: device_set_wakeup_capable(ds1307->dev, false); clear_bit(HAS_ALARM, &ds1307->flags); dev_err(ds1307->dev, "unable to request IRQ!\n"); - } else + } else { dev_dbg(ds1307->dev, "got IRQ %d\n", client->irq); + } } if (chip->nvram_size) { |