svn commit: r358485 - head/sys/dev/ale

Warner Losh imp at FreeBSD.org
Sun Mar 1 17:27:26 UTC 2020


Author: imp
Date: Sun Mar  1 17:27:25 2020
New Revision: 358485
URL: https://svnweb.freebsd.org/changeset/base/358485

Log:
  Remove compatibility code for changing sysctl definitions for pre FreeBSD 9
  versions. These are just noise these days.

Modified:
  head/sys/dev/ale/if_ale.c

Modified: head/sys/dev/ale/if_ale.c
==============================================================================
--- head/sys/dev/ale/if_ale.c	Sun Mar  1 16:45:54 2020	(r358484)
+++ head/sys/dev/ale/if_ale.c	Sun Mar  1 17:27:25 2020	(r358485)
@@ -767,16 +767,8 @@ ale_detach(device_t dev)
 #define	ALE_SYSCTL_STAT_ADD32(c, h, n, p, d)	\
 	    SYSCTL_ADD_UINT(c, h, OID_AUTO, n, CTLFLAG_RD, p, 0, d)
 
-#if __FreeBSD_version >= 900030
 #define	ALE_SYSCTL_STAT_ADD64(c, h, n, p, d)	\
 	    SYSCTL_ADD_UQUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
-#elif __FreeBSD_version > 800000
-#define	ALE_SYSCTL_STAT_ADD64(c, h, n, p, d)	\
-	    SYSCTL_ADD_QUAD(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
-#else
-#define	ALE_SYSCTL_STAT_ADD64(c, h, n, p, d)	\
-	    SYSCTL_ADD_ULONG(c, h, OID_AUTO, n, CTLFLAG_RD, p, d)
-#endif
 
 static void
 ale_sysctl_node(struct ale_softc *sc)


More information about the svn-src-all mailing list