From 87ccc1812e293718ffd488efec3470e9933e8e00 Mon Sep 17 00:00:00 2001 From: vda Date: Mon, 10 Sep 2007 12:23:27 +0000 Subject: [PATCH] grep: delete obsolete comment git-svn-id: svn://busybox.net/trunk/busybox@19812 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- findutils/grep.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/findutils/grep.c b/findutils/grep.c index a051c2f1..3a9c7407 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -181,14 +181,8 @@ static int grep_file(FILE *file) while (pattern_ptr) { gl = (grep_list_data_t *)pattern_ptr->data; if (FGREP_FLAG) { - found |= strstr(line, gl->pattern) != NULL; + found |= (strstr(line, gl->pattern) != NULL); } else { - /* - * test for a postitive-assertion match (regexec returns success (0) - * and the user did not specify invert search), or a negative-assertion - * match (regexec returns failure (REG_NOMATCH) and the user specified - * invert search) - */ if (!(gl->flg_mem_alocated_compiled & COMPILED)) { gl->flg_mem_alocated_compiled |= COMPILED; xregcomp(&(gl->preg), gl->pattern, reflags); -- 2.17.1