diff options
author | Martin Schwenke <martin@meltin.net> | 2014-03-03 16:23:42 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-03-23 04:20:14 +0100 |
commit | fad2b6b074495eb1dc036cce293456857985f8f5 (patch) | |
tree | 011de16659cced787b2f90ea3b708263c3b13b70 /ctdb | |
parent | 555aa06c41e7f77bf241e04ccf771009645e9c27 (diff) | |
download | samba-fad2b6b074495eb1dc036cce293456857985f8f5.tar.gz samba-fad2b6b074495eb1dc036cce293456857985f8f5.tar.xz samba-fad2b6b074495eb1dc036cce293456857985f8f5.zip |
ctdb-tools-ctdb: Remove redundant filtering of trailing empty lines
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>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/tools/ctdb.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 05bfd0c7994..58ac5e64d38 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -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; |