2011-05-12 02:37:52

by MyungJoo Ham

[permalink] [raw]
Subject: [PATCH] regulator: max8997: remove useless code

From: Jonghwan Choi <[email protected]>

fix unreachable code.

Signed-off-by: Jonghwan Choi <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
---
drivers/regulator/max8997.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c
index 77e0cfb..b1c1444 100644
--- a/drivers/regulator/max8997.c
+++ b/drivers/regulator/max8997.c
@@ -267,7 +267,6 @@ static int max8997_get_enable_register(struct regulator_dev *rdev,
default:
/* Not controllable or not exists */
return -EINVAL;
- break;
}

return 0;
--
1.7.4.1


2011-05-12 06:29:30

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: max8997: remove useless code

On Thu, May 12, 2011 at 11:37:48AM +0900, MyungJoo Ham wrote:
> From: Jonghwan Choi <[email protected]>
>
> fix unreachable code.
>
> Signed-off-by: Jonghwan Choi <[email protected]>
> Signed-off-by: MyungJoo Ham <[email protected]>

Acked-by: Mark Brown <[email protected]>

2011-05-13 12:34:50

by Liam Girdwood

[permalink] [raw]
Subject: Re: [PATCH] regulator: max8997: remove useless code

On Thu, 2011-05-12 at 11:37 +0900, MyungJoo Ham wrote:
> From: Jonghwan Choi <[email protected]>
>
> fix unreachable code.
>
> Signed-off-by: Jonghwan Choi <[email protected]>
> Signed-off-by: MyungJoo Ham <[email protected]>
> ---
> drivers/regulator/max8997.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c
> index 77e0cfb..b1c1444 100644
> --- a/drivers/regulator/max8997.c
> +++ b/drivers/regulator/max8997.c
> @@ -267,7 +267,6 @@ static int max8997_get_enable_register(struct regulator_dev *rdev,
> default:
> /* Not controllable or not exists */
> return -EINVAL;
> - break;
> }
>
> return 0;


Applied.

Liam