diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2017-07-24 13:53:02 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-09-20 18:15:56 +0200 |
commit | c1449e44303fcfbc7df8aec81e74f36efd997fc2 (patch) | |
tree | 76b60eda78ef068a0aa6b2151c6b4666e4e65da2 /arch | |
parent | 8306ed46d771cc3cda353d296ba54d366b400b64 (diff) |
powergate-t12x.c: fix compilation with gcc 7
With gcc 7 the following compile time error occurs:
| arch/arm/mach-tegra/powergate-t12x.c:814:10: error: statement will never be executed [-Werror=switch-unreachable]
| return true;
| ^~~~
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/powergate-t12x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/powergate-t12x.c b/arch/arm/mach-tegra/powergate-t12x.c index 36deee3172c6..dd8126931294 100644 --- a/arch/arm/mach-tegra/powergate-t12x.c +++ b/arch/arm/mach-tegra/powergate-t12x.c @@ -810,8 +810,8 @@ bool tegra12x_powergate_skip(int id) switch (id) { #ifdef CONFIG_ARCH_TEGRA_HAS_SATA case TEGRA_POWERGATE_SATA: -#endif return true; +#endif default: return false; |