diff mbox series

Iterate through entire list in order to find duplicated elements

Message ID 6aea8901-4f88-4627-9cb3-d2c8368f5b6a@googlegroups.com
State Accepted
Headers show
Series Iterate through entire list in order to find duplicated elements | expand

Commit Message

piotr.piwko@gmail.com May 29, 2018, 7:31 a.m. UTC
From 1fac9596eba66780476558a9653a2cf21bc81bda Mon Sep 17 00:00:00 2001
From: Piotr Piwko <piotr.piwko@gmail.com>
Date: Tue, 29 May 2018 09:11:39 +0200
Subject: [PATCH] Iterate through entire list in order to find duplicated
 elements

This approach allows to use the same file from cpio archive in the few elements
(images, scripts, bootscripts) described in sw-description.

Signed-off-by: Piotr Piwko <piotr.piwko@gmail.com>
---
 include/swupdate.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Stefano Babic May 29, 2018, 3:13 p.m. UTC | #1
On 29/05/2018 09:31, piotr.piwko@gmail.com wrote:
> From 1fac9596eba66780476558a9653a2cf21bc81bda Mon Sep 17 00:00:00 2001
> From: Piotr Piwko <piotr.piwko@gmail.com>
> Date: Tue, 29 May 2018 09:11:39 +0200
> Subject: [PATCH] Iterate through entire list in order to find duplicated
>  elements
> 
> This approach allows to use the same file from cpio archive in the few elements
> (images, scripts, bootscripts) described in sw-description.
> 
> Signed-off-by: Piotr Piwko <piotr.piwko@gmail.com>
> ---
>  include/swupdate.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/swupdate.h b/include/swupdate.h
> index 6f0170d..49deb4d 100644
> --- a/include/swupdate.h
> +++ b/include/swupdate.h
> @@ -139,7 +139,6 @@ struct swupdate_cfg {
>  				img->offset = offs; \
>  				img->provided = 1; \
>  				img->size = fdh.size; \
> -				break; \
>  			} \
>  		} \
>  		if (!found) \
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/include/swupdate.h b/include/swupdate.h
index 6f0170d..49deb4d 100644
--- a/include/swupdate.h
+++ b/include/swupdate.h
@@ -139,7 +139,6 @@  struct swupdate_cfg {
 				img->offset = offs; \
 				img->provided = 1; \
 				img->size = fdh.size; \
-				break; \
 			} \
 		} \
 		if (!found) \