diff mbox series

[1/2] delta_handler: remove unused imports and braces

Message ID 20240425115148.67894-1-michael.adler@siemens.com
State Accepted
Headers show
Series [1/2] delta_handler: remove unused imports and braces | expand

Commit Message

Michael Adler April 25, 2024, 11:51 a.m. UTC
Signed-off-by: Michael Adler <michael.adler@siemens.com>
Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 handlers/delta_handler.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/handlers/delta_handler.c b/handlers/delta_handler.c
index a3d17a59..7819630c 100644
--- a/handlers/delta_handler.c
+++ b/handlers/delta_handler.c
@@ -24,7 +24,6 @@ 
 #include <sys/statvfs.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <ctype.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>
@@ -39,7 +38,6 @@ 
 #include <sys/mman.h>
 #include "delta_handler.h"
 #include "multipart_parser.h"
-#include "installer.h"
 #include "zchunk_range.h"
 #include "chained_handler.h"
 #include "swupdate_image.h"
@@ -756,7 +754,7 @@  static bool copy_network_chunks(zckChunk **dstChunk, struct hnd_priv *priv)
 					return false;
 				}
 			}
-			if ((answer->type == RANGE_DATA)) {
+			if (answer->type == RANGE_DATA) {
 				priv->dwlstate = WAITING_FOR_BOUNDARY;
 			}
 			break;
@@ -785,7 +783,7 @@  static bool copy_network_chunks(zckChunk **dstChunk, struct hnd_priv *priv)
 			if (!read_and_validate_package(priv))
 				return false;
 			answer = priv->answer;
-			if ((answer->type == RANGE_COMPLETED)) {
+			if (answer->type == RANGE_COMPLETED) {
 				priv->dwlstate = END_TRANSFER;
 			} else if (!fill_buffers_list(priv))
 				return false;