Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e69c0567 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: ds1307: fix braces



Fix unnecessary or unbalanced braces.

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 4057a66e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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,
@@ -1688,9 +1687,10 @@ 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) {
		ds1307->nvmem_cfg.name = "ds1307_nvram";