summaryrefslogtreecommitdiffstats
path: root/sys-utils/lsns.c
diff options
context:
space:
mode:
authorKarel Zak2018-02-20 14:59:40 +0100
committerKarel Zak2018-02-20 14:59:40 +0100
commit887810a8a5420c8eb265503f56ce8a77e4484378 (patch)
treec4fd373e629c9682cb94a5cdbeebed6d2cbfd8df /sys-utils/lsns.c
parentcolumn: fix memory leak [coverity scan] (diff)
downloadkernel-qcow2-util-linux-887810a8a5420c8eb265503f56ce8a77e4484378.tar.gz
kernel-qcow2-util-linux-887810a8a5420c8eb265503f56ce8a77e4484378.tar.xz
kernel-qcow2-util-linux-887810a8a5420c8eb265503f56ce8a77e4484378.zip
lsns: remove if-after-xcalloc
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lsns.c')
-rw-r--r--sys-utils/lsns.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys-utils/lsns.c b/sys-utils/lsns.c
index 9f99152a4..dce92901e 100644
--- a/sys-utils/lsns.c
+++ b/sys-utils/lsns.c
@@ -437,10 +437,6 @@ static int read_process(struct lsns *ls, pid_t pid)
return -errno;
p = xcalloc(1, sizeof(*p));
- if (!p) {
- rc = -ENOMEM;
- goto done;
- }
p->netnsid = LSNS_NETNS_UNUSABLE;
if (fstat(dirfd(dir), &st) == 0) {