summaryrefslogtreecommitdiff
path: root/sys/net/if_pppx.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-04-07 07:09:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-04-07 07:09:48 +0000
commit06b0e38248a7ab3dedf2712dcfeb30ede605a222 (patch)
tree7297cd2aef63031ccb8222f74699304762936575 /sys/net/if_pppx.c
parent6679c73319ee63eb8d67337d04de4205c52ea65c (diff)
Remove superfluous NULL check from allocation with PR_WAITOK.
From Vitaliy Makkoveev
Diffstat (limited to 'sys/net/if_pppx.c')
-rw-r--r--sys/net/if_pppx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c
index 31f8ffebaae..4834b45164a 100644
--- a/sys/net/if_pppx.c
+++ b/sys/net/if_pppx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppx.c,v 1.79 2020/04/06 12:31:30 claudio Exp $ */
+/* $OpenBSD: if_pppx.c,v 1.80 2020/04/07 07:09:47 mpi Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@@ -720,8 +720,6 @@ pppx_add_session(struct pppx_dev *pxd, struct pipex_session_req *req)
}
pxi = pool_get(pppx_if_pl, PR_WAITOK | PR_ZERO);
- if (pxi == NULL)
- return (ENOMEM);
session = &pxi->pxi_session;
ifp = &pxi->pxi_if;