Skip to content

Commit

Permalink
rtc: ds1307: fix braces
Browse files Browse the repository at this point in the history
Fix unnecessary or unbalanced braces.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  • Loading branch information
Alexandre Belloni committed Sep 5, 2017
1 parent 4057a66 commit e69c056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/rtc/rtc-ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,9 +1667,8 @@ static int ds1307_probe(struct i2c_client *client,
}

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,
Expand All @@ -1688,8 +1687,9 @@ static int ds1307_probe(struct i2c_client *client,
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) {
Expand Down

0 comments on commit e69c056

Please sign in to comment.