diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-03-04 21:20:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-03-04 21:20:38 +0000 |
commit | 30685db632fa3c8e649d4428f742ce1d94957dbb (patch) | |
tree | 21ea4647c26124f54e6e56d1e936cf03b31129f2 /sys/net | |
parent | f1221307dfddf09d321e8674f611732dae4dd4e3 (diff) |
remove unnecessary malloc checks when using WAITOK
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfkeyv2.c | 10 |
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)); { |