ctdb-tools-ctdb: Remove redundant filtering of trailing empty lines
authorMartin Schwenke <martin@meltin.net>
Mon, 3 Mar 2014 05:23:42 +0000 (16:23 +1100)
committerAmitay Isaacs <amitay@samba.org>
Sun, 23 Mar 2014 03:20:14 +0000 (04:20 +0100)
There is a check for empty lines in the loop just below.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ctdb.c

index 05bfd0c7994654c94911dbc120ccf6ad14bd2850..58ac5e64d388ff6d3cc6654cc486d571d5d2cbc2 100644 (file)
@@ -830,9 +830,6 @@ static struct pnn_node *read_pnn_node_file(TALLOC_CTX *mem_ctx,
        if (lines == NULL) {
                return NULL;
        }
-       while (nlines > 0 && strcmp(lines[nlines-1], "") == 0) {
-               nlines--;
-       }
        for (i=0, pnn=0; i<nlines; i++) {
                char *node;