From ada806ee3365b765ec6244c1ac22d52872005d61 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 20 Jun 2014 14:47:24 +0300 Subject: [PATCH] ranges: remove unneeded NULL check We don't check "value" before teh strncmp() on the next line so it's not consistent. Just remove this NULL check since it's never NULL here. Signed-off-by: Dan Carpenter --- smatch_ranges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_ranges.c b/smatch_ranges.c index cac603a8..f86e198b 100644 --- a/smatch_ranges.c +++ b/smatch_ranges.c @@ -200,7 +200,7 @@ static void str_to_rl_helper(struct expression *call, struct symbol *type, char type = &llong_ctype; *rl = NULL; - if (value && strcmp(value, "empty") == 0) + if (strcmp(value, "empty") == 0) return; if (strncmp(value, "[==p", 4) == 0) { -- 2.11.4.GIT