Skip to content

Commit

Permalink
regulator: s5m8767: Remove unused variable
Browse files Browse the repository at this point in the history
'size' is not used in the function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Jun 24, 2014
1 parent 7171511 commit 0a3ade7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/regulator/s5m8767.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ static int s5m8767_pmic_probe(struct platform_device *pdev)
struct sec_platform_data *pdata = iodev->pdata;
struct regulator_config config = { };
struct s5m8767_info *s5m8767;
int i, ret, size, buck_init;
int i, ret, buck_init;

if (!pdata) {
dev_err(pdev->dev.parent, "Platform data not supplied\n");
Expand Down Expand Up @@ -725,8 +725,6 @@ static int s5m8767_pmic_probe(struct platform_device *pdev)
if (!s5m8767)
return -ENOMEM;

size = sizeof(struct regulator_dev *) * (S5M8767_REG_MAX - 2);

s5m8767->dev = &pdev->dev;
s5m8767->iodev = iodev;
s5m8767->num_regulators = pdata->num_regulators;
Expand Down

0 comments on commit 0a3ade7

Please sign in to comment.