summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pyhalov <apyhalov@gmail.com>2020-01-16 13:14:19 +0300
committerAlexander Pyhalov <apyhalov@gmail.com>2020-01-16 14:08:50 +0300
commit987bd85c5d64ea13f2322c86abc71d7d3e237f93 (patch)
tree339cd1d447139a0b4a46783e1a00c2c75141c490
parente95fe2787bf46c4044b445714824cdbb60be6600 (diff)
downloadillumos-gfx-drm-987bd85c5d64ea13f2322c86abc71d7d3e237f93.tar.gz
12199 gfx-drm is broken again
Reviewed by: Andy Fiddaman <omnios@citrus-it.net> Reviewed by: Toomas Soome <tsoome@me.com>
-rw-r--r--usr/src/uts/intel/io/agpgart/agp_kstat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/uts/intel/io/agpgart/agp_kstat.c b/usr/src/uts/intel/io/agpgart/agp_kstat.c
index 1913fb8..2c6cd02 100644
--- a/usr/src/uts/intel/io/agpgart/agp_kstat.c
+++ b/usr/src/uts/intel/io/agpgart/agp_kstat.c
@@ -3,8 +3,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/kstat.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
@@ -102,7 +100,7 @@ agp_init_kstats(agpgart_softstate_t *sc)
KSTAT_TYPE_NAMED, sizeof (agpkstat_name)/sizeof (char *) - 1,
KSTAT_FLAG_PERSISTENT);
if (ksp == NULL)
- return (NULL);
+ return (0);
ksp->ks_private = sc;
ksp->ks_update = agp_kstat_update;