Skip to content

Commit

Permalink
rtc: rx8025: remove unnecessary braces
Browse files Browse the repository at this point in the history
braces {} are not necessary for single statement blocks

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  • Loading branch information
Alexandre Belloni committed Nov 8, 2015
1 parent caff0cc commit b1f9d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-rx8025.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

static const struct i2c_device_id rx8025_id[] = {
{ "rx8025", 0 },
{ "rv8803", 1 },
{ }
};
MODULE_DEVICE_TABLE(i2c, rx8025_id);
Expand Down Expand Up @@ -518,9 +519,8 @@ static int rx8025_probe(struct i2c_client *client,
}

rx8025 = devm_kzalloc(&client->dev, sizeof(*rx8025), GFP_KERNEL);
if (!rx8025) {
if (!rx8025)
return -ENOMEM;
}

rx8025->client = client;
i2c_set_clientdata(client, rx8025);
Expand Down

0 comments on commit b1f9d79

Please sign in to comment.