svn commit: r271013 - head/sys/dev/drm

Gleb Smirnoff glebius at FreeBSD.org
Wed Sep 3 09:58:59 UTC 2014


Author: glebius
Date: Wed Sep  3 09:58:59 2014
New Revision: 271013
URL: http://svnweb.freebsd.org/changeset/base/271013

Log:
  Remove always false comparison.
  
  Sponsored by:	Nginx, Inc.

Modified:
  head/sys/dev/drm/drm_sysctl.c

Modified: head/sys/dev/drm/drm_sysctl.c
==============================================================================
--- head/sys/dev/drm/drm_sysctl.c	Wed Sep  3 09:35:38 2014	(r271012)
+++ head/sys/dev/drm/drm_sysctl.c	Wed Sep  3 09:58:59 2014	(r271013)
@@ -193,7 +193,7 @@ static int drm_vm_info DRM_SYSCTL_HANDLE
 	for (i = 0; i < mapcount; i++) {
 		map = &tempmaps[i];
 
-		if (map->type < 0 || map->type > 4)
+		if (map->type > 4)
 			type = "??";
 		else
 			type = types[map->type];


More information about the svn-src-head mailing list