Remove some unneeded continue statements.
authorSascha Wildner <saw@online.de>
Sun, 15 Jun 2014 01:10:42 +0000 (03:10 +0200)
committerSascha Wildner <saw@online.de>
Sun, 15 Jun 2014 01:10:42 +0000 (03:10 +0200)
lib/libc/resolv/res_init.c
sys/boot/pc32/libi386/biosdisk.c
sys/net/pf/if_pfsync.c
usr.bin/tail/tail.c
usr.bin/units/units.c
usr.sbin/lpr/chkprintcap/chkprintcap.c
usr.sbin/lpr/lpc/movejobs.c

index e0f8838..a33b5da 100644 (file)
@@ -446,10 +446,8 @@ __res_vinit(res_state statp, int preinit) {
                    continue;
                }
 #endif
-               if (MATCH(buf, "options")) {
+               if (MATCH(buf, "options"))
                    res_setoptions(statp, buf + sizeof("options") - 1, "conf");
-                   continue;
-               }
            }
            if (nserv > 0) 
                statp->nscount = nserv;
index d410d70..09c2657 100644 (file)
@@ -843,10 +843,8 @@ bd_chainextended(struct open_disk *od, u_int32_t base, u_int32_t offset)
                        continue;
                }
                if ((dp1->dp_typ == DOSPTYP_EXT) || 
-                   (dp1->dp_typ == DOSPTYP_EXTLBA)) {
+                   (dp1->dp_typ == DOSPTYP_EXTLBA))
                        bd_chainextended(od, base, dp1->dp_start);
-                       continue;
-               }
        }
 }
 
index 8791560..53827a7 100644 (file)
@@ -600,7 +600,6 @@ pfsync_input(struct mbuf *m, ...)
                                        crit_exit();
                                        goto done;
                                }
-                               continue;
                        }
                }
                crit_exit();
index eb393a7..08b563b 100644 (file)
@@ -32,7 +32,6 @@
  * @(#) Copyright (c) 1991, 1993 The Regents of the University of California.  All rights reserved.
  * @(#)tail.c  8.1 (Berkeley) 6/6/93
  * $FreeBSD: src/usr.bin/tail/tail.c,v 1.6.2.2 2001/12/19 20:29:31 iedowse Exp $
- * $DragonFly: src/usr.bin/tail/tail.c,v 1.6 2005/03/01 21:37:33 cpressey Exp $
  */
 
 #include <sys/types.h>
@@ -137,7 +136,6 @@ main(int argc, char **argv)
                            fstat(fileno(file->fp), &file->st) == -1) {
                                file->fp = NULL;
                                ierr();
-                               continue;
                        }
                }
                follow(files, style, off);
index 4916897..fc0e8f8 100644 (file)
@@ -169,11 +169,9 @@ readunits(const char *userfile)
                        lineptr[strlen(lineptr) - 1] = 0;
                        prefixtable[prefixcount].prefixname = dupstr(lineptr);
                        for (i = 0; i < prefixcount; i++)
-                               if (!strcmp(prefixtable[i].prefixname, lineptr)) {
+                               if (!strcmp(prefixtable[i].prefixname, lineptr))
                                        warnx("redefinition of prefix '%s' on line %d ignored",
                                            lineptr, linenum);
-                                       continue;
-                               }
                        lineptr += len + 1;
                        lineptr += strspn(lineptr, " \n\t");
                        len = strcspn(lineptr, "\n\t");
@@ -192,11 +190,9 @@ readunits(const char *userfile)
                        }
                        unittable[unitcount].uname = dupstr(lineptr);
                        for (i = 0; i < unitcount; i++)
-                               if (!strcmp(unittable[i].uname, lineptr)) {
+                               if (!strcmp(unittable[i].uname, lineptr))
                                        warnx("redefinition of unit '%s' on line %d ignored",
                                            lineptr, linenum);
-                                       continue;
-                               }
                        lineptr += len + 1;
                        lineptr += strspn(lineptr, " \n\t");
                        if (!strlen(lineptr)) {
index 13356f0..80b4d9e 100644 (file)
@@ -262,7 +262,6 @@ check_spool_dirs(void)
                                      "directory", dp->path, dp->printer,
                                      dp2->path, dp2->printer);
                        }
-                       continue;
                }
                /* Should probably check owners and modes here. */
        }
index 989b73d..1193e81 100644 (file)
@@ -32,7 +32,6 @@
  * ------+---------+---------+---------+---------+---------+---------+---------*
  *
  * $FreeBSD: src/usr.sbin/lpr/lpc/movejobs.c,v 1.1.2.1 2002/07/26 03:12:07 gad Exp $
- * $DragonFly: src/usr.sbin/lpr/lpc/movejobs.c,v 1.3 2005/08/08 18:58:56 joerg Exp $
  */
 
 /*
@@ -89,10 +88,8 @@ process_jobs(int argc, char *argv[], process_jqe process_rtn, void *myinfo)
        STAILQ_INIT(&jobs_wanted);
        for (i = 0; i < argc; i++) {
                pjres = parse_jobspec(argv[i], &jobs_wanted);
-               if (pjres == 0) {
+               if (pjres == 0)
                        printf("\tinvalid job specifier: %s\n", argv[i]);
-                       continue;
-               }
        }
        matchcnt = scanq_jobspec(nitems, queue, SCQ_JSORDER, &jobs_wanted,
            process_rtn, myinfo);