From 78e55be0e6e51fe34e51544070c69cb6634b7eff Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 20 Mar 2011 20:11:11 -0500 Subject: Remove unnecessary NULL check fp can never be NULL at this point in the code, proven by Coccinelle. Signed-off-by: Dan McGee --- src/pacman/pacman.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 55f99a66..591b2a00 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -1230,9 +1230,7 @@ static int _parseconfig(const char *file, const char *givensection, } cleanup: - if(fp) { - fclose(fp); - } + fclose(fp); if(section){ free(section); } -- cgit v1.2.3-24-g4f1b