Re: [PATCH 1/1] regulator: s5m8767: Remove unused variable

2014-06-24 Thread Mark Brown
On Tue, Jun 24, 2014 at 02:10:04PM +0530, Sachin Kamat wrote:
> 'size' is not used in the function. Remove it.

Applied, thanks.


signature.asc
Description: Digital signature


[PATCH 1/1] regulator: s5m8767: Remove unused variable

2014-06-24 Thread Sachin Kamat
'size' is not used in the function. Remove it.

Signed-off-by: Sachin Kamat 
---
 drivers/regulator/s5m8767.c |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index c79af943a5c0..0ab5cbeeb797 100644
--- a/drivers/regulator/s5m8767.c
+++ b/drivers/regulator/s5m8767.c
@@ -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");
@@ -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 = >dev;
s5m8767->iodev = iodev;
s5m8767->num_regulators = pdata->num_regulators;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/1] regulator: s5m8767: Remove unused variable

2014-06-24 Thread Sachin Kamat
'size' is not used in the function. Remove it.

Signed-off-by: Sachin Kamat sachin.ka...@samsung.com
---
 drivers/regulator/s5m8767.c |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index c79af943a5c0..0ab5cbeeb797 100644
--- a/drivers/regulator/s5m8767.c
+++ b/drivers/regulator/s5m8767.c
@@ -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);
@@ -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;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/1] regulator: s5m8767: Remove unused variable

2014-06-24 Thread Mark Brown
On Tue, Jun 24, 2014 at 02:10:04PM +0530, Sachin Kamat wrote:
 'size' is not used in the function. Remove it.

Applied, thanks.


signature.asc
Description: Digital signature