diff options
| author | Hareesh Gundu <hareeshg@codeaurora.org> | 2016-02-08 20:03:26 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:19:57 -0700 |
| commit | a46fa74c1732dd7cd406a98e0701a947f6b770aa (patch) | |
| tree | 44ad5046039bb7dc1a2a972a54fec36df17b3e1c /drivers/gpu/msm | |
| parent | b853a0682a27987f19106eb5fe011fa1e40cddd8 (diff) | |
msm: kgsl: fix some uninitialized variables
This change set default value for uninitialized variables,
to address errors related to them.
Change-Id: Idd306cafa4dfca322945ea8398e0c4d6c18d6ff6
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Diffstat (limited to 'drivers/gpu/msm')
| -rw-r--r-- | drivers/gpu/msm/adreno.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/msm/adreno_cp_parser.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c index 0622f3280284..b800ce54964e 100644 --- a/drivers/gpu/msm/adreno.c +++ b/drivers/gpu/msm/adreno.c @@ -2499,7 +2499,7 @@ static void adreno_power_stats(struct kgsl_device *device, struct adreno_device *adreno_dev = ADRENO_DEVICE(device); struct kgsl_pwrctrl *pwr = &device->pwrctrl; struct adreno_busy_data *busy = &adreno_dev->busy_data; - uint64_t adj; + uint64_t adj = 0; memset(stats, 0, sizeof(*stats)); diff --git a/drivers/gpu/msm/adreno_cp_parser.c b/drivers/gpu/msm/adreno_cp_parser.c index 4a444c27b8a4..2ccb8139e6b8 100644 --- a/drivers/gpu/msm/adreno_cp_parser.c +++ b/drivers/gpu/msm/adreno_cp_parser.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -787,7 +787,6 @@ static int adreno_cp_parse_ib2(struct kgsl_device *device, struct adreno_ib_object_list *ib_obj_list, int ib_level) { - struct adreno_ib_object *ib_obj; int i; /* * We can only expect an IB2 in IB1, if we are @@ -800,7 +799,7 @@ static int adreno_cp_parse_ib2(struct kgsl_device *device, * not been processed already */ for (i = 0; i < ib_obj_list->num_objs; i++) { - ib_obj = &(ib_obj_list->obj_list[i]); + struct adreno_ib_object *ib_obj = &(ib_obj_list->obj_list[i]); if ((SNAPSHOT_GPU_OBJECT_IB == ib_obj->snapshot_obj_type) && (gpuaddr >= ib_obj->gpuaddr) && (gpuaddr + dwords * sizeof(unsigned int) <= |
