Skip to content
Snippets Groups Projects
Commit ccc4c3bc authored by Chanwoo Choi's avatar Chanwoo Choi Committed by MyungJoo Ham
Browse files

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: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 416b46a2
No related branches found
No related tags found
No related merge requests found
...@@ -311,7 +311,6 @@ int update_devfreq(struct devfreq *devfreq) ...@@ -311,7 +311,6 @@ 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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment