From 4b7afb1da866e163f7e6a0e089e948644032260a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oto=20=C5=A0=C5=A5=C3=A1va?= <oto.stava@nic.cz>
Date: Mon, 27 Jun 2022 07:37:58 +0200
Subject: [PATCH] nit: daemon/http: remove dead code

---
 daemon/http.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/daemon/http.c b/daemon/http.c
index 3347aa6f4..421d5b403 100644
--- a/daemon/http.c
+++ b/daemon/http.c
@@ -231,9 +231,6 @@ static int process_uri_path(struct http_ctx *ctx, const char* path, int32_t stre
 	uint8_t *dest;
 	uint32_t remaining;
 
-	if (!path)
-		return kr_error(EINVAL);
-
 	char *query_mark = strstr(path, "?");
 	if (!query_mark || strlen(query_mark) == 0) /* no parameters in path */
 		return kr_error(EINVAL);
-- 
GitLab