diff mbox series

[1/2] copy handler: drop dead code

Message ID 20230405123319.335294-1-sbabic@denx.de
State Changes Requested
Headers show
Series [1/2] copy handler: drop dead code | expand

Commit Message

Stefano Babic April 5, 2023, 12:33 p.m. UTC
Second check about size value cannot be hit, removed.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 handlers/copy_handler.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c
index 27f6caf..872724c 100644
--- a/handlers/copy_handler.c
+++ b/handlers/copy_handler.c
@@ -36,6 +36,11 @@ 
 static void copy_handler(void);
 static void raw_copyimage_handler(void);
 
+static bool copy_single_file(const char *path)
+{
+
+}
+
 static int copy_image_file(struct img_type *img, void *data)
 {
 	int ret;
@@ -133,12 +138,6 @@  static int copy_image_file(struct img_type *img, void *data)
 
 	free(path);
 
-	if (!size) {
-		ERROR("Size cannot be detected, please set it, exiting...");
-		close(fdin);
-		return -EFAULT;
-	}
-
 	if (pipe(pipes) < 0) {
 		ERROR("Could not create pipes for chained handler, existing...");
 		close(fdin);