[PATCH] image-sparse: remove unused define

Rouven Czerwinski r.czerwinski at pengutronix.de
Mon Jun 21 03:27:07 PDT 2021


CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE is present since the very first
addition of sparse image support. However its not used anywhere in the
code, so remove it.

Fixes: 13f649a4f960 ("Add support for fastboot sparse images")

Signed-off-by: Rouven Czerwinski <r.czerwinski at pengutronix.de>
---
 lib/image-sparse.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/image-sparse.c b/lib/image-sparse.c
index c375c78d63..eb5242e25a 100644
--- a/lib/image-sparse.c
+++ b/lib/image-sparse.c
@@ -46,10 +46,6 @@
 
 #include <linux/math64.h>
 
-#ifndef CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE
-#define CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE (1024 * 512)
-#endif
-
 struct sparse_image_ctx {
 	int fd;
 	struct sparse_header sparse;
-- 
2.31.1




More information about the barebox mailing list