From 9e01635e326c787059e5c1b83b5fbb9dddd67275 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 8 Apr 2013 20:32:51 +0100 Subject: libmount, col: remove redundant null checks [smatch scan] libmount/src/context_umount.c:174 mnt_context_find_umount_fs() info: redundant null check on loopdev calling free() libmount/src/context_umount.c:179 mnt_context_find_umount_fs() info: redundant null check on loopdev calling free() text-utils/col.c:406 flush_lines() info: redundant null check on l->l_line calling free() Signed-off-by: Sami Kerola --- text-utils/col.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'text-utils/col.c') diff --git a/text-utils/col.c b/text-utils/col.c index 474b33fca..9aa6a414b 100644 --- a/text-utils/col.c +++ b/text-utils/col.c @@ -402,8 +402,7 @@ void flush_lines(int nflush) flush_line(l); } nblank_lines++; - if (l->l_line) - free((void *)l->l_line); + free((void *)l->l_line); free_line(l); } if (lines) -- cgit v1.2.3-55-g7522