thermal/drivers/devfreq_cooling: Fix wrong return on error path