diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2013-12-24 17:51:55 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-21 22:35:34 -0500 |
commit | 80a178dee7f7db938a26b28ead58af5b293d189f (patch) | |
tree | 40a817e4c91d1719adc84cc1dd9916ffa99b758c /android | |
parent | 0676816b0f9a45153da68a1bf296525b5cd2fa56 (diff) |
cpufreq: interactive: fix compiling warnings
The gcc warns like:
cpufreq_interactive.c:745:6: warning: operation on 'ret' may be undefined [-Wsequence-point]
It was introduced by commit cf0fad49d17cb8273ce555dd5b7afab67d7923bf.
Since sprintf(...) just return 1 (one character) in this case, ret should not changed.
Just discarding the result of sprintf(...) leads to the result that
the committer of cf0fad49d17cb8273ce555dd5b7afab67d7923bf wants.
Change-Id: Ifed1cef6d6a31c3ed23dad03a567b3b9eddf3a57
Signed-off-by: Chih-Wei Huang <cwhuang@android-x86.org>
Diffstat (limited to 'android')
0 files changed, 0 insertions, 0 deletions