summaryrefslogtreecommitdiffstats
path: root/sys/contrib/x86emu
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2016-02-18 23:00:01 +0000
committerjkim <jkim@FreeBSD.org>2016-02-18 23:00:01 +0000
commit3a188348b659f1c83cc3ef71a7184fa2b546a59b (patch)
tree01a163e9eec8c21228953733d7d64ba7f27d315f /sys/contrib/x86emu
parent1007b7761087ac28c4518178040736f43ad195a7 (diff)
downloadFreeBSD-src-3a188348b659f1c83cc3ef71a7184fa2b546a59b.zip
FreeBSD-src-3a188348b659f1c83cc3ef71a7184fa2b546a59b.tar.gz
Silence VPS-Studio errors (V646). These is no functional change.
Diffstat (limited to 'sys/contrib/x86emu')
-rw-r--r--sys/contrib/x86emu/x86emu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/contrib/x86emu/x86emu.c b/sys/contrib/x86emu/x86emu.c
index 41e7c4a..bc7b386 100644
--- a/sys/contrib/x86emu/x86emu.c
+++ b/sys/contrib/x86emu/x86emu.c
@@ -7003,7 +7003,7 @@ rol_byte(struct x86emu *emu, uint8_t d, uint8_t s)
CONDITIONAL_SET_FLAG(s == 1 &&
XOR2((res & 0x1) + ((res >> 6) & 0x2)),
F_OF);
- } if (s != 0) {
+ } else if (s != 0) {
/* set the new carry flag, Note that it is the low order bit
* of the result!!! */
CONDITIONAL_SET_FLAG(res & 0x1, F_CF);
@@ -7029,7 +7029,7 @@ rol_word(struct x86emu *emu, uint16_t d, uint8_t s)
CONDITIONAL_SET_FLAG(s == 1 &&
XOR2((res & 0x1) + ((res >> 14) & 0x2)),
F_OF);
- } if (s != 0) {
+ } else if (s != 0) {
/* set the new carry flag, Note that it is the low order bit
* of the result!!! */
CONDITIONAL_SET_FLAG(res & 0x1, F_CF);
@@ -7055,7 +7055,7 @@ rol_long(struct x86emu *emu, uint32_t d, uint8_t s)
CONDITIONAL_SET_FLAG(s == 1 &&
XOR2((res & 0x1) + ((res >> 30) & 0x2)),
F_OF);
- } if (s != 0) {
+ } else if (s != 0) {
/* set the new carry flag, Note that it is the low order bit
* of the result!!! */
CONDITIONAL_SET_FLAG(res & 0x1, F_CF);
OpenPOWER on IntegriCloud