Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2018 22:10:50 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338447 - head/sys/net
Message-ID:  <201809032210.w83MAo0S018428@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Mon Sep  3 22:10:49 2018
New Revision: 338447
URL: https://svnweb.freebsd.org/changeset/base/338447

Log:
  Rather than duplicating the functionality of a macro after r322866
  use the already existing one.  No functional changes.
  
  Reviewed by:	karels, ae
  Approved by:	re (rgrimes)
  Differential Revision:	https://reviews.freebsd.org/D17004

Modified:
  head/sys/net/route.h

Modified: head/sys/net/route.h
==============================================================================
--- head/sys/net/route.h	Mon Sep  3 17:39:09 2018	(r338446)
+++ head/sys/net/route.h	Mon Sep  3 22:10:49 2018	(r338447)
@@ -410,10 +410,8 @@ struct rt_addrinfo {
 } while (0)
 
 #define	RO_RTFREE(_ro) do {					\
-	if ((_ro)->ro_rt) {					\
-		RT_LOCK((_ro)->ro_rt);				\
-		RTFREE_LOCKED((_ro)->ro_rt);			\
-	}							\
+	if ((_ro)->ro_rt)					\
+		RTFREE((_ro)->ro_rt);				\
 } while (0)
 
 #define	RO_INVALIDATE_CACHE(ro) do {					\



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