summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-04 21:20:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-04 21:20:38 +0000
commit30685db632fa3c8e649d4428f742ce1d94957dbb (patch)
tree21ea4647c26124f54e6e56d1e936cf03b31129f2 /sys/net
parentf1221307dfddf09d321e8674f611732dae4dd4e3 (diff)
remove unnecessary malloc checks when using WAITOK
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfkeyv2.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 5f680f2dc53..a7f51104e8b 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -792,11 +792,6 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
if (sa2->tdb_flags & TDBF_INVALID) {
MALLOC(freeme, struct tdb *, sizeof(struct tdb), M_TDB, M_WAITOK);
- if (freeme == NULL) {
- rval = ENOMEM;
- goto ret;
- }
-
bzero(freeme, sizeof(struct tdb));
{
@@ -902,11 +897,6 @@ pfkeyv2_send(struct socket *socket, void *message, int len)
}
MALLOC(freeme, struct tdb *, sizeof(struct tdb), M_TDB, M_WAITOK);
- if (freeme == NULL) {
- rval = ENOMEM;
- goto ret;
- }
-
bzero(freeme, sizeof(struct tdb));
{