diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-02-18 23:00:01 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-02-18 23:00:01 +0000 |
commit | 7de2983dd0049ef3ae56f0ea87c24fe229382589 (patch) | |
tree | 01a163e9eec8c21228953733d7d64ba7f27d315f /sys/contrib | |
parent | 08e9106881e544d2cd4f17719ad9957e870b4512 (diff) | |
download | src-7de2983dd0049ef3ae56f0ea87c24fe229382589.tar.gz src-7de2983dd0049ef3ae56f0ea87c24fe229382589.zip |
Silence VPS-Studio errors (V646). These is no functional change.
Notes
Notes:
svn path=/head/; revision=295775
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/x86emu/x86emu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/contrib/x86emu/x86emu.c b/sys/contrib/x86emu/x86emu.c index 41e7c4a8d944..bc7b3862b6bc 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); |