Author: jkim
Date: Thu Feb 18 23:00:01 2016
New Revision: 295775
URL: https://svnweb.freebsd.org/changeset/base/295775

Log:
  Silence VPS-Studio errors (V646).  These is no functional change.

Modified:
  head/sys/contrib/x86emu/x86emu.c

Modified: head/sys/contrib/x86emu/x86emu.c
==============================================================================
--- head/sys/contrib/x86emu/x86emu.c    Thu Feb 18 22:40:24 2016        
(r295774)
+++ head/sys/contrib/x86emu/x86emu.c    Thu Feb 18 23:00:01 2016        
(r295775)
@@ -7003,7 +7003,7 @@ rol_byte(struct x86emu *emu, uint8_t d, 
                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,
                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,
                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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to