diff options
author | Toomas Soome <tsoome@me.com> | 2016-05-26 17:30:05 +0300 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2016-05-27 11:52:19 -0400 |
commit | 058c4bb45994ad954199a7e36d99b487725043ad (patch) | |
tree | ee743c2194389ea832d9d6ae89f3758f3b07d0f0 /usr/src | |
parent | 06cf6f102162a50c50c11c1579390fe873da5509 (diff) | |
download | illumos-joyent-058c4bb45994ad954199a7e36d99b487725043ad.tar.gz |
7000 gfxp_umem_cookie_init() does wrong cast on return
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Reviewed by: Richard PALO <richard@netbsd.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/i86pc/io/gfx_private/gfxp_devmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/uts/i86pc/io/gfx_private/gfxp_devmap.c b/usr/src/uts/i86pc/io/gfx_private/gfxp_devmap.c index 956af1bcaf..495b17377f 100644 --- a/usr/src/uts/i86pc/io/gfx_private/gfxp_devmap.c +++ b/usr/src/uts/i86pc/io/gfx_private/gfxp_devmap.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/debug.h> #include <sys/types.h> #include <sys/param.h> @@ -72,7 +70,7 @@ gfxp_umem_cookie_init(caddr_t kva, size_t size) umem_cookie->type = KMEM_NON_PAGEABLE; umem_cookie->size = size; - return ((ddi_umem_cookie_t *)umem_cookie); + return ((ddi_umem_cookie_t)umem_cookie); } void |