Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2018 07:49:16 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r339035 - stable/11/sys/netinet
Message-ID:  <201810010749.w917nGIp017922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Mon Oct  1 07:49:16 2018
New Revision: 339035
URL: https://svnweb.freebsd.org/changeset/base/339035

Log:
  MFC r336165:
  
  Removed pointless NULL check in rip_pcblist.
  
  Sponsored by:	Multiplay

Modified:
  stable/11/sys/netinet/raw_ip.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/raw_ip.c
==============================================================================
--- stable/11/sys/netinet/raw_ip.c	Mon Oct  1 04:08:47 2018	(r339034)
+++ stable/11/sys/netinet/raw_ip.c	Mon Oct  1 07:49:16 2018	(r339035)
@@ -1053,8 +1053,6 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
 		return (error);
 
 	inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
-	if (inp_list == NULL)
-		return (ENOMEM);
 
 	INP_INFO_RLOCK(&V_ripcbinfo);
 	for (inp = LIST_FIRST(V_ripcbinfo.ipi_listhead), i = 0; inp && i < n;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810010749.w917nGIp017922>