diff BUGFIX redundant check
diff --git a/src/diff.c b/src/diff.c
index cef0713..eddce38 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1501,7 +1501,7 @@
     }
 
     /* remove any redundant nodes */
-    if (diff_parent && lyd_diff_is_redundant(diff_parent)) {
+    if (lyd_diff_is_redundant(diff_parent)) {
         if (diff_parent == *diff) {
             *diff = (*diff)->next;
         }