Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 884cda2e authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Fix some variable issues in the perfcounter code



Fix two potential issues in the A3XX performance counter code:

* Some compilers might get worried that the 'in' variable might be
  used uninitialized in the perfcounter read functions. It isn't;
  but not really worth arguing over.

* It is possible for the result of the macro ADRENO_PERFCOUNTERS to
  be NULL if the GPU device isn't define.  Correctly check for a
  NULL pointer to avoid a dereference.

Change-Id: Ic0dedbad5a74101233ced2402e98e36d1acb2d71
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 3371b80a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment