From: Hiroshi Doyu Date: Fri, 22 Feb 2013 06:24:25 +0000 (+0800) Subject: ARM: tegra: Fix unchecked return value X-Git-Tag: v3.12-rc1~933^2~11^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4c25cc38260950f9ede38a88f932c7958adb2ec;p=kernel%2Fkernel-generic.git ARM: tegra: Fix unchecked return value Check a return value for tegra_powergate_remove_clamping(). Signed-off-by: Hiroshi Doyu Signed-off-by: Joseph Lo Signed-off-by: Stephen Warren --- diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c index 2c6b3d5..4dfc75e 100644 --- a/arch/arm/mach-tegra/platsmp.c +++ b/arch/arm/mach-tegra/platsmp.c @@ -124,6 +124,9 @@ remove_clamps: /* Remove I/O clamps. */ ret = tegra_powergate_remove_clamping(pwrgateid); + if (ret) + return ret; + udelay(10); /* Clear flow controller CSR. */