path REFACTOR redunant check
diff --git a/src/path.c b/src/path.c
index 5fd33e6..9a77414 100644
--- a/src/path.c
+++ b/src/path.c
@@ -707,12 +707,10 @@
}
/* store the value */
- if (key) {
- LOG_LOCSET(key, NULL);
- }
+ LOG_LOCSET(key, NULL);
ret = lyd_value_store(ctx, &p->value, ((struct lysc_node_leaf *)key)->type, val, val_len, 0, 0,
NULL, format, prefix_data, LYD_HINT_DATA, key, NULL);
- LOG_LOCBACK(key ? 1 : 0, 0);
+ LOG_LOCBACK(1, 0);
LY_CHECK_ERR_GOTO(ret, p->value.realtype = NULL, cleanup);
/* "allocate" the type to avoid problems when freeing the value after the type was freed */