Skip to content

Commit e69c056

Browse files
rtc: ds1307: fix braces
Fix unnecessary or unbalanced braces. Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 4057a66 commit e69c056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/rtc/rtc-ds1307.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,9 +1667,8 @@ static int ds1307_probe(struct i2c_client *client,
16671667
}
16681668

16691669
ds1307->rtc = devm_rtc_allocate_device(ds1307->dev);
1670-
if (IS_ERR(ds1307->rtc)) {
1670+
if (IS_ERR(ds1307->rtc))
16711671
return PTR_ERR(ds1307->rtc);
1672-
}
16731672

16741673
if (ds1307_can_wakeup_device && !want_irq) {
16751674
dev_info(ds1307->dev,
@@ -1688,8 +1687,9 @@ static int ds1307_probe(struct i2c_client *client,
16881687
device_set_wakeup_capable(ds1307->dev, false);
16891688
clear_bit(HAS_ALARM, &ds1307->flags);
16901689
dev_err(ds1307->dev, "unable to request IRQ!\n");
1691-
} else
1690+
} else {
16921691
dev_dbg(ds1307->dev, "got IRQ %d\n", client->irq);
1692+
}
16931693
}
16941694

16951695
if (chip->nvram_size) {

0 commit comments

Comments
 (0)