As per subject, a couple of empty loop bodies in the i396 and amd64 boot blocks.

Diff below.

Tom


Index: sys/arch/amd64/stand/libsa/biosdev.c
===================================================================
RCS file: /home/OpenBSD/cvs/src/sys/arch/amd64/stand/libsa/biosdev.c,v
retrieving revision 1.27
diff -u -p -u -r1.27 biosdev.c
--- sys/arch/amd64/stand/libsa/biosdev.c        1 Oct 2015 20:28:12 -0000       
1.27
+++ sys/arch/amd64/stand/libsa/biosdev.c        6 Jun 2016 21:04:07 -0000
@@ -671,7 +671,8 @@ biosdisk_err(u_int error)
        register const u_char *p = bidos_errs;
 
        while (*p && *p != error)
-               while (*p++);
+               while (*p++)
+                       continue;
 
        return ++p;
 }
@@ -703,7 +704,8 @@ biosdisk_errno(u_int error)
        if (error == 0)
                return 0;
 
-       for (p = tab; p->error && p->error != error; p++);
+       for (p = tab; p->error && p->error != error; p++)
+               continue;
 
        return p->errno;
 }
Index: sys/arch/i386/stand/libsa/biosdev.c
===================================================================
RCS file: /home/OpenBSD/cvs/src/sys/arch/i386/stand/libsa/biosdev.c,v
retrieving revision 1.92
diff -u -p -u -r1.92 biosdev.c
--- sys/arch/i386/stand/libsa/biosdev.c 1 Oct 2015 20:28:12 -0000       1.92
+++ sys/arch/i386/stand/libsa/biosdev.c 6 Jun 2016 21:04:07 -0000
@@ -672,7 +672,8 @@ biosdisk_err(u_int error)
        register const u_char *p = bidos_errs;
 
        while (*p && *p != error)
-               while (*p++);
+               while (*p++)
+                       continue;
 
        return ++p;
 }
@@ -704,7 +705,8 @@ biosdisk_errno(u_int error)
        if (error == 0)
                return 0;
 
-       for (p = tab; p->error && p->error != error; p++);
+       for (p = tab; p->error && p->error != error; p++)
+               continue;
 
        return p->errno;
 }

Reply via email to