Skip to content

Commit

Permalink
lsns: remove if-after-xcalloc
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Zak <[email protected]>
  • Loading branch information
karelzak committed Feb 20, 2018
1 parent d658091 commit 887810a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sys-utils/lsns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 887810a

Please sign in to comment.