summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hartmann <jhartmann@valinux.com>2001-08-07 18:22:41 +0000
committerJeff Hartmann <jhartmann@valinux.com>2001-08-07 18:22:41 +0000
commit938a637d1fc33bc8ef14210d655c27d646ddc2d2 (patch)
tree055e3a396cf4efc06519201689136540c3d6c9ef
parent51e38d96ead5700c25c4fddd8017dc7992e96f5a (diff)
Avoid compiler warning about r_list being used uninitialized.
-rw-r--r--linux-core/drm_bufs.c2
-rw-r--r--linux/drm_bufs.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index e8c62dda..ec5dd543 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -196,7 +196,7 @@ int DRM(rmmap)(struct inode *inode, struct file *filp,
drm_file_t *priv = filp->private_data;
drm_device_t *dev = priv->dev;
struct list_head *list;
- drm_map_list_t *r_list;
+ drm_map_list_t *r_list = NULL;
drm_vma_entry_t *pt, *prev;
drm_map_t *map;
drm_map_t request;
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h
index e8c62dda..ec5dd543 100644
--- a/linux/drm_bufs.h
+++ b/linux/drm_bufs.h
@@ -196,7 +196,7 @@ int DRM(rmmap)(struct inode *inode, struct file *filp,
drm_file_t *priv = filp->private_data;
drm_device_t *dev = priv->dev;
struct list_head *list;
- drm_map_list_t *r_list;
+ drm_map_list_t *r_list = NULL;
drm_vma_entry_t *pt, *prev;
drm_map_t *map;
drm_map_t request;