SiS DRM: fix a pointer cast warning

Fix a pointer cast warning in the SIS DRM code.

This was introduced in patch ce65a44de0.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
David Howells 2008-07-30 12:29:38 -07:00 committed by Dave Airlie
parent 6bb9e4bff5
commit 48f185d0e0

View File

@ -57,7 +57,7 @@ static void *sis_sman_mm_allocate(void *private, unsigned long size,
if (req.size == 0)
return NULL;
else
return (void *)~req.offset;
return (void *)(unsigned long)~req.offset;
}
static void sis_sman_mm_free(void *private, void *ref)