aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-26 10:25:28 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-11-08 08:12:25 -0500
commitb1f9d790b59dc04f8813a49a92ddd8651770ffee (patch)
treed4f2125e58fd5003e7536cad41e168f10f23a218
parentcaff0cc419d764287675e55bb46405c6e1fe43ee (diff)
rtc: rx8025: remove unnecessary braces
braces {} are not necessary for single statement blocks Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--drivers/rtc/rtc-rx8025.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c
index 24c3d69ce1b9..bd911bafb809 100644
--- a/drivers/rtc/rtc-rx8025.c
+++ b/drivers/rtc/rtc-rx8025.c
@@ -65,6 +65,7 @@
65 65
66static const struct i2c_device_id rx8025_id[] = { 66static const struct i2c_device_id rx8025_id[] = {
67 { "rx8025", 0 }, 67 { "rx8025", 0 },
68 { "rv8803", 1 },
68 { } 69 { }
69}; 70};
70MODULE_DEVICE_TABLE(i2c, rx8025_id); 71MODULE_DEVICE_TABLE(i2c, rx8025_id);
@@ -518,9 +519,8 @@ static int rx8025_probe(struct i2c_client *client,
518 } 519 }
519 520
520 rx8025 = devm_kzalloc(&client->dev, sizeof(*rx8025), GFP_KERNEL); 521 rx8025 = devm_kzalloc(&client->dev, sizeof(*rx8025), GFP_KERNEL);
521 if (!rx8025) { 522 if (!rx8025)
522 return -ENOMEM; 523 return -ENOMEM;
523 }
524 524
525 rx8025->client = client; 525 rx8025->client = client;
526 i2c_set_clientdata(client, rx8025); 526 i2c_set_clientdata(client, rx8025);