summaryrefslogtreecommitdiffstats
path: root/text-utils/col.c
diff options
context:
space:
mode:
authorSami Kerola2013-04-08 21:32:51 +0200
committerKarel Zak2013-04-09 12:26:42 +0200
commit9e01635e326c787059e5c1b83b5fbb9dddd67275 (patch)
tree7ea0cd1a052db858538079c01f2647acfce2acd0 /text-utils/col.c
parentvarious: fix shadow declarations [smatch scan] (diff)
downloadkernel-qcow2-util-linux-9e01635e326c787059e5c1b83b5fbb9dddd67275.tar.gz
kernel-qcow2-util-linux-9e01635e326c787059e5c1b83b5fbb9dddd67275.tar.xz
kernel-qcow2-util-linux-9e01635e326c787059e5c1b83b5fbb9dddd67275.zip
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 <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/col.c')
-rw-r--r--text-utils/col.c3
1 files changed, 1 insertions, 2 deletions
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)