[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/8] smbus: Fix unreachable code in smb_transaction(
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH 6/8] smbus: Fix unreachable code in smb_transaction() |
Date: |
Tue, 27 May 2014 09:40:03 +0800 |
From: Gonglei <address@hidden>
Spotted by Coverity:
(1) Event unreachable: This code cannot be reached: "abort();".
112 abort();
Signed-off-by: Gonglei <address@hidden>
---
hw/i2c/pm_smbus.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/i2c/pm_smbus.c b/hw/i2c/pm_smbus.c
index fedb5fb..da09eb0 100644
--- a/hw/i2c/pm_smbus.c
+++ b/hw/i2c/pm_smbus.c
@@ -109,7 +109,6 @@ static void smb_transaction(PMSMBus *s)
default:
goto error;
}
- abort();
data16:
if (ret < 0) {
--
1.7.12.4
Re: [Qemu-devel] [PATCH 6/8] smbus: Fix unreachable code in smb_transaction(), Eric Blake, 2014/05/28
[Qemu-devel] [PATCH 1/8] vnc-enc-tight: Fix divide-by-zero in tight_detect_smooth_image{16, 24, 32}, arei.gonglei, 2014/05/26