Commit eb2c0c81 authored by Ben Widawsky's avatar Ben Widawsky Committed by Daniel Vetter

drm/i915: [dinq] shut up two instances -Wunitialized

Introduced in commit 8461d226 and 8c59967cSigned-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
[danvet: s/fix/shut up/ in the commit msg.]
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 777ee96f
...@@ -387,7 +387,7 @@ i915_gem_shmem_pread_slow(struct drm_device *dev, ...@@ -387,7 +387,7 @@ i915_gem_shmem_pread_slow(struct drm_device *dev,
char __user *user_data; char __user *user_data;
ssize_t remain; ssize_t remain;
loff_t offset; loff_t offset;
int shmem_page_offset, page_length, ret; int shmem_page_offset, page_length, ret = 0;
int obj_do_bit17_swizzling, page_do_bit17_swizzling; int obj_do_bit17_swizzling, page_do_bit17_swizzling;
user_data = (char __user *) (uintptr_t) args->data_ptr; user_data = (char __user *) (uintptr_t) args->data_ptr;
...@@ -794,7 +794,7 @@ i915_gem_shmem_pwrite_slow(struct drm_device *dev, ...@@ -794,7 +794,7 @@ i915_gem_shmem_pwrite_slow(struct drm_device *dev,
ssize_t remain; ssize_t remain;
loff_t offset; loff_t offset;
char __user *user_data; char __user *user_data;
int shmem_page_offset, page_length, ret; int shmem_page_offset, page_length, ret = 0;
int obj_do_bit17_swizzling, page_do_bit17_swizzling; int obj_do_bit17_swizzling, page_do_bit17_swizzling;
user_data = (char __user *) (uintptr_t) args->data_ptr; user_data = (char __user *) (uintptr_t) args->data_ptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment