summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/pfkeyv2.c')
-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));
{