discover/pxe-parser: Remove unnecessary semicolon
authorJeremy Kerr <jk@ozlabs.org>
Wed, 4 Jun 2014 04:35:25 +0000 (12:35 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 16 Jul 2014 00:47:46 +0000 (08:47 +0800)
We have an unnecessary semicolon on an empty for-loop, which causes a
clang warning.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/pxe-parser.c

index 98e160373a90f25c68fe22434d60d84ee9dfda19..00f3b31c20c514e64f7d0049dc911bb9465034e9 100644 (file)
@@ -58,7 +58,7 @@ static struct pb_url *pxe_url_join(void *ctx, const struct pb_url *url,
        } else {
                const char *tmp;
                /* strip leading slashes */
-               for (tmp = s; *tmp == '/'; tmp++);
+               for (tmp = s; *tmp == '/'; tmp++)
                        ;
                new_url = pb_url_join(ctx, url, tmp);
        }