From bf2b2fdfca36d6a9a36dce1a129e504e246bfabb Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Wed, 31 Jan 2001 21:06:27 +0000 Subject: [PATCH] Remove useless check. (Mike Chen) Wed Jan 31 16:05:44 2001 Owen Taylor * gtree.c (g_tree_node_search): Remove useless check. (Mike Chen) --- glib/gtree.c | 2 +- gtree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gtree.c b/glib/gtree.c index 39c1668ee..c453eb64b 100644 --- a/glib/gtree.c +++ b/glib/gtree.c @@ -649,7 +649,7 @@ g_tree_node_search (GTreeNode *node, node = node->left; else if (dir > 0) node = node->right; - } while (node && (dir != 0)); + } while (node); return NULL; } diff --git a/gtree.c b/gtree.c index 39c1668ee..c453eb64b 100644 --- a/gtree.c +++ b/gtree.c @@ -649,7 +649,7 @@ g_tree_node_search (GTreeNode *node, node = node->left; else if (dir > 0) node = node->right; - } while (node && (dir != 0)); + } while (node); return NULL; }