From 1d95b989f24543d10060e94d43718f72b6416ba9 Mon Sep 17 00:00:00 2001 From: Evgeny Voevodin Date: Thu, 20 Dec 2012 09:18:14 +0400 Subject: [PATCH] Fix faults reported by Sonar tool. Signed-off-by: Evgeny Voevodin --- tizen/src/hw/maru_arm_pmu.c | 2 +- tizen/src/hw/maru_arm_vpci.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tizen/src/hw/maru_arm_pmu.c b/tizen/src/hw/maru_arm_pmu.c index e7c1ae7abd..202ad81b85 100644 --- a/tizen/src/hw/maru_arm_pmu.c +++ b/tizen/src/hw/maru_arm_pmu.c @@ -446,7 +446,7 @@ static void exynos4210_pmu_write(void *opaque, target_phys_addr_t offset, return; } default: - return; + break; } } diff --git a/tizen/src/hw/maru_arm_vpci.c b/tizen/src/hw/maru_arm_vpci.c index c81d536cef..66e714b791 100644 --- a/tizen/src/hw/maru_arm_vpci.c +++ b/tizen/src/hw/maru_arm_vpci.c @@ -48,6 +48,8 @@ static uint64_t tizen_vpci_io_read(void *opaque, target_phys_addr_t addr, return cpu_inw(addr); case 4: return cpu_inl(addr); + default: + break; } assert(0); } -- 2.34.1