From: Denis Vlasenko Date: Mon, 12 Mar 2007 19:49:07 +0000 (-0000) Subject: chcon: remove redundant ifs: if(p) free(p) X-Git-Tag: 1_5_1~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5c33b10b9f4019757833538c82f64bd49c00f38;p=platform%2Fupstream%2Fbusybox.git chcon: remove redundant ifs: if(p) free(p) --- diff --git a/selinux/chcon.c b/selinux/chcon.c index b7d7d5a..de077c3 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c @@ -97,11 +97,8 @@ static int change_filedir_context(const char *fname, struct stat *stbuf, void *u rc = TRUE; } skip: - /* FIXME: aren't these work ok on NULL ptr? Remove if() then */ - if (context) - context_free(context); - if (file_context) - freecon(file_context); + context_free(context); + freecon(file_context); return rc; }