diff options
author | 2020-04-07 07:09:47 +0000 | |
---|---|---|
committer | 2020-04-07 07:09:47 +0000 | |
commit | 2f25d447be7d1b53c17a2349cf4c8bf65fe353a3 (patch) | |
tree | e23d66d15083d312db2b753a160db5a496661471 | |
parent | acpi(4): acpi_sleep(): tsleep(9) -> tsleep_nsec(9) (diff) | |
download | wireguard-openbsd-2f25d447be7d1b53c17a2349cf4c8bf65fe353a3.tar.xz wireguard-openbsd-2f25d447be7d1b53c17a2349cf4c8bf65fe353a3.zip |
Remove superfluous NULL check from allocation with PR_WAITOK.
From Vitaliy Makkoveev
-rw-r--r-- | sys/net/if_pppx.c | 4 |
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; |