You need to sign in or sign up before continuing.
提交 1d1397c3 编写于 作者: Y Yangtao Li 提交者: MyungJoo Ham

PM / devfreq: tegra: remove unneeded variable

This variable is not used after initialization, so
remove it. And in order to unify the code style,
move the location where the dev_get_drvdata is called
by the way.
Signed-off-by: NYangtao Li <tiny.windzz@gmail.com>
Reviewed-by: NChanwoo Choi <cw00.choi@samsung.com>
Acked-by: NJon Hunter <jonathanh@nvidia.com>
Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
上级 72640969
...@@ -573,10 +573,7 @@ static int tegra_governor_get_target(struct devfreq *devfreq, ...@@ -573,10 +573,7 @@ static int tegra_governor_get_target(struct devfreq *devfreq,
static int tegra_governor_event_handler(struct devfreq *devfreq, static int tegra_governor_event_handler(struct devfreq *devfreq,
unsigned int event, void *data) unsigned int event, void *data)
{ {
struct tegra_devfreq *tegra; struct tegra_devfreq *tegra = dev_get_drvdata(devfreq->dev.parent);
int ret = 0;
tegra = dev_get_drvdata(devfreq->dev.parent);
switch (event) { switch (event) {
case DEVFREQ_GOV_START: case DEVFREQ_GOV_START:
...@@ -600,7 +597,7 @@ static int tegra_governor_event_handler(struct devfreq *devfreq, ...@@ -600,7 +597,7 @@ static int tegra_governor_event_handler(struct devfreq *devfreq,
break; break;
} }
return ret; return 0;
} }
static struct devfreq_governor tegra_devfreq_governor = { static struct devfreq_governor tegra_devfreq_governor = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册