cpufreq: interactive: fix a few compiling warnings

Change-Id: Id884c79c6767ca0639e735a86526022e54b3d32b
warning: operation on 'ret' may be undefined [-Wsequence-point]