summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-10-23 11:36:42 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-10-23 11:36:42 +0100
commitdf4975b8d4a0993ad33bf8cc62546ebfd586097a (patch)
tree78b0d622bb376b141813d1a1e7c9da6652037aa9 /desktop
parente5823beb61ce8b719be503a16c649f595170994f (diff)
downloadnetsurf-df4975b8d4a0993ad33bf8cc62546ebfd586097a.tar.gz
netsurf-df4975b8d4a0993ad33bf8cc62546ebfd586097a.tar.bz2
Remove unnecessary check.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/treeview.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index c14086da4..c14d7a851 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -225,8 +225,7 @@ static inline treeview_node * treeview_node_next(treeview_node *node, bool full)
* go to next sibling if present, or nearest ancestor
* with a next sibling. */
- while (node != NULL && node->parent != NULL &&
- node->next_sib == NULL) {
+ while (node->parent != NULL && node->next_sib == NULL) {
node = node->parent;
}