mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
committed by
MyungJoo Ham
parent
416b46a262
commit
ccc4c3bcbb
@@ -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;
|
||||||
|
Reference in New Issue
Block a user