From 7b35c8a82f0c7177c09aa99e1db4857fdec91513 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 18 May 2010 14:35:24 +0200 Subject: [PATCH] small cleanup and a comment change Signed-off-by: Dan Carpenter --- smatch_flow.c | 3 +-- smatch_states.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/smatch_flow.c b/smatch_flow.c index 6d666baa..4493f55c 100644 --- a/smatch_flow.c +++ b/smatch_flow.c @@ -614,8 +614,7 @@ static void split_declaration(struct symbol_list *sym_list) static void split_function(struct symbol *sym) { - struct symbol *base_type; - base_type = get_base_type(sym); + struct symbol *base_type = get_base_type(sym); cur_func_sym = sym; if (base_type->stmt) diff --git a/smatch_states.c b/smatch_states.c index 77648099..cc99114f 100644 --- a/smatch_states.c +++ b/smatch_states.c @@ -381,7 +381,7 @@ void __match_nullify_path_hook(const char *fn, struct expression *expr, /* * At the start of every function we mark the path - * as unnull. That there is always at least one state + * as unnull. That way there is always at least one state * in the cur_slist until nullify_path is called. This * is used in merge_slist() for the first null check. */ -- 2.11.4.GIT