drm/i915: [dinq] shut up two instances -Wunitialized
authorBen Widawsky <ben@bwidawsk.net>
Wed, 15 Feb 2012 13:42:43 +0000 (14:42 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Mar 2012 16:44:09 +0000 (17:44 +0100)
Introduced in commit 8461d226 and 8c59967c

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: s/fix/shut up/ in the commit msg.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c

index 863e14ac04069ff179dd2b7ba11ba39c68fc1b5c..6b1859799e6cb9e61cfabd13e99643a39f721622 100644 (file)
@@ -387,7 +387,7 @@ i915_gem_shmem_pread_slow(struct drm_device *dev,
        char __user *user_data;
        ssize_t remain;
        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;
 
        user_data = (char __user *) (uintptr_t) args->data_ptr;
@@ -794,7 +794,7 @@ i915_gem_shmem_pwrite_slow(struct drm_device *dev,
        ssize_t remain;
        loff_t offset;
        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;
 
        user_data = (char __user *) (uintptr_t) args->data_ptr;