diff options
author | John Weber <rjohnweber@gmail.com> | 2013-07-15 14:34:38 -0500 |
---|---|---|
committer | John Weber <rjohnweber@gmail.com> | 2013-07-17 14:22:38 -0500 |
commit | e259a0f89e1d69a919793d2191e98cf7c11a76af (patch) | |
tree | 881e0d75f93dec2d1a09e38b406875f408d92db3 | |
parent | c016de04563f7495e2c5b1aa0af29ce1a1113f71 (diff) |
Revert "gpu-viv: Avoid using uninitialized variables"
With the current default configuration, this commit is no longer needed.
Avoid patching specialized driver files such as the GPU.
This reverts commit c0fceed3315ed3167cd024a6b5a27b7c711a0d22.
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c | 2 | ||||
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command_vg.c | 2 | ||||
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c index c567640c908e..7964585e7afa 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c +++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c @@ -886,7 +886,7 @@ gckKERNEL_Dispatch( { gceSTATUS status = gcvSTATUS_OK; gctSIZE_T bytes; - gcuVIDMEM_NODE_PTR node = gcvNULL; + gcuVIDMEM_NODE_PTR node; gctBOOL locked = gcvFALSE; gctPHYS_ADDR physical = gcvNULL; gctPOINTER logical = gcvNULL; diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command_vg.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command_vg.c index af053f925ab1..9685a5db3ea8 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command_vg.c +++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command_vg.c @@ -1106,7 +1106,7 @@ _AllocateCommandBuffer( gctUINT requestedSize; gctUINT allocationSize; gctUINT32 address = 0; - gcsCMDBUFFER_PTR commandBuffer = gcvNULL; + gcsCMDBUFFER_PTR commandBuffer; gctUINT8_PTR endCommand; /* Determine the aligned header size. */ diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.c index d9370e2fae3d..d49aa6463296 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.c +++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_video_memory.c @@ -1660,7 +1660,7 @@ gckVIDMEM_Lock( gctBOOL acquired = gcvFALSE; gctBOOL locked = gcvFALSE; gckOS os = gcvNULL; - gctBOOL needMapping = gcvFALSE; + gctBOOL needMapping; gctUINT32 baseAddress; gcmkHEADER_ARG("Node=0x%x", Node); |