[ccan] [PATCH 09/10] tools: avoid dead store to dest

Brad Hards bradh at frogmouth.net
Tue Mar 8 20:28:12 EST 2011


dest is local to the loop, so there is no point in assigning to it only to continue
---
 tools/ccanlint/file_analysis.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/tools/ccanlint/file_analysis.c b/tools/ccanlint/file_analysis.c
index e8c8ebc..de1e8cf 100644
--- a/tools/ccanlint/file_analysis.c
+++ b/tools/ccanlint/file_analysis.c
@@ -134,7 +134,6 @@ static void add_files(struct manifest *m, const char *dir)
 
 		is_c_src = strends(f->name, ".c");
 		if (!is_c_src && !strends(f->name, ".h")) {
-			dest = &m->other_files;
 			continue;
 		}
 
-- 
1.7.1



More information about the ccan mailing list