提交 ccc4c3bc 编写于 作者: C Chanwoo Choi 提交者: MyungJoo Ham

PM / devfreq: Remove unneeded conditional statement

The freq_table array of each devfreq device is always not NULL.
In result, it is unneeded to check whether profile->freq_table
is NULL or not.
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
上级 416b46a2
...@@ -311,10 +311,9 @@ int update_devfreq(struct devfreq *devfreq) ...@@ -311,10 +311,9 @@ int update_devfreq(struct devfreq *devfreq)
freqs.new = freq; freqs.new = freq;
devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE); devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE);
if (devfreq->profile->freq_table) if (devfreq_update_status(devfreq, freq))
if (devfreq_update_status(devfreq, freq)) dev_err(&devfreq->dev,
dev_err(&devfreq->dev, "Couldn't update frequency transition information.\n");
"Couldn't update frequency transition information.\n");
devfreq->previous_freq = freq; devfreq->previous_freq = freq;
return err; return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册