From: Geert Uytterhoeven Date: Fri, 5 Oct 2012 00:12:16 +0000 (-0700) Subject: frv: kill used but uninitialized variable X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~146 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87be8932ae55da702411328c1438e29905ced40a;p=pandora-kernel.git frv: kill used but uninitialized variable Commit 6afe1a1fe8ff ("PM: Remove legacy PM") removed the initialization of retval, causing: arch/frv/kernel/pm.c: In function 'sysctl_pm_do_suspend': arch/frv/kernel/pm.c:165:5: warning: 'retval' may be used uninitialized in this function [-Wuninitialized] Remove the variable completely to fix this, and convert to a proper switch (...) { ... } construct to improve readability. Signed-off-by: Geert Uytterhoeven Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed