aboutsummaryrefslogtreecommitdiff
path: root/linux-core/i830_dma.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-07-05 11:56:51 +0000
committerDave Airlie <airlied@linux.ie>2004-07-05 11:56:51 +0000
commit3c9fb37e655f5556c9c002535f1a85c4f248fb2c (patch)
tree6c85dcaeb687d7610a5e66246953a93a81c18909 /linux-core/i830_dma.c
parent4cfd0d5ceed49f834a09b22756c100b77bcfa327 (diff)
fixes from kernel for 0 vs NULL - mika
Diffstat (limited to 'linux-core/i830_dma.c')
-rw-r--r--linux-core/i830_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c
index 48c6ef51..8cd76cf4 100644
--- a/linux-core/i830_dma.c
+++ b/linux-core/i830_dma.c
@@ -178,7 +178,7 @@ static int i830_map_buffer(drm_buf_t *buf, struct file *filp)
/* Real error */
DRM_ERROR("mmap error\n");
retcode = PTR_ERR(buf_priv->virtual);
- buf_priv->virtual = 0;
+ buf_priv->virtual = NULL;
}
up_write( &current->mm->mmap_sem );
@@ -200,7 +200,7 @@ static int i830_unmap_buffer(drm_buf_t *buf)
up_write(&current->mm->mmap_sem);
buf_priv->currently_mapped = I830_BUF_UNMAPPED;
- buf_priv->virtual = 0;
+ buf_priv->virtual = NULL;
return retcode;
}