From a0bd41720afb55b501ddff2c3bbd7f50a7c0ba1a Mon Sep 17 00:00:00 2001 From: eadler Date: Mon, 4 Mar 2013 02:21:34 +0000 Subject: Remove check for NULL prior to free(9) and m_freem(9). Approved by: cperciva (mentor) --- sys/compat/linux/linux_socket.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/compat/linux/linux_socket.c') diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index cd288f8..36b23ac 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1443,10 +1443,8 @@ out: bad: free(iov, M_IOV); - if (control != NULL) - m_freem(control); - if (linux_cmsg != NULL) - free(linux_cmsg, M_TEMP); + m_freem(control); + free(linux_cmsg, M_TEMP); return (error); } -- cgit v1.1