Skip to contentSkip to conversation

dtc: Remove bogus break statement

PATCH Applied David Gibson 2 participants 2 messages Jun 28, 2007 – Jul 2, 2007

lore
Share & tools
lore
#0 lore raw

Commit 0738774fcc34b78a708a127fb4b2f193d08c94ba introduced some incorrect indentation / bracketing in unflatten_tree(). By luck, the extra break statement intended to be within an if block, but actually afterwards has no semantic effect. Still, this patch gets rid of it for cleanliness.

flattree.c +0 -1
Index: dtc/flattree.c
===================================================================
@@ -779,7 +779,6 @@ static struct node *unflatten_tree(struc
 			if (!(flags & FTF_NOPS))
 				fprintf(stderr, "Warning: NOP tag found in flat tree"
 					" version <16\n");
-				break;
 
 			/* Ignore */
 			break;
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
Applied
#1 lore raw

So, like, the other day David Gibson mumbled:

Quoted 7 lines

Commit 0738774fcc34b78a708a127fb4b2f193d08c94ba introduced some incorrect indentation / bracketing in unflatten_tree(). By luck, the extra break statement intended to be within an if block, but actually afterwards has no semantic effect. Still, this patch gets rid of it for cleanliness.

Applied.

Thanks,
jdl