diff options
author | oleg <oleg@FreeBSD.org> | 2006-08-04 10:50:51 +0000 |
---|---|---|
committer | oleg <oleg@FreeBSD.org> | 2006-08-04 10:50:51 +0000 |
commit | 0b94127d30eafcdec37379cec51e454aeb6062c5 (patch) | |
tree | ab33be3efd86d55386832d78b45b2b5fecf4955e /sys/netinet/ip_fw2.c | |
parent | c9a3ba7309c2fe62af2ad775150cbbaf2b53ecb7 (diff) | |
download | FreeBSD-src-0b94127d30eafcdec37379cec51e454aeb6062c5.zip FreeBSD-src-0b94127d30eafcdec37379cec51e454aeb6062c5.tar.gz |
Remove useless NULL pointer check: we are using M_WAITOK flag for memory
allocation.
Submitted by: Andrey Elsukov <bu7cher at yandex dot ru>
Approved by: glebius (mentor)
MFC after: 1 week
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r-- | sys/netinet/ip_fw2.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index fd1ab2d..e9b24df 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -4086,10 +4086,6 @@ ipfw_ctl(struct sockopt *sopt) } size = sopt->sopt_valsize; tbl = malloc(size, M_TEMP, M_WAITOK); - if (tbl == NULL) { - error = ENOMEM; - break; - } error = sooptcopyin(sopt, tbl, size, sizeof(*tbl)); if (error) { free(tbl, M_TEMP); |