summaryrefslogtreecommitdiff
path: root/test/pdiff
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@mozilla.com>2014-05-02 18:53:41 +0200
committerBryce Harrington <b.harrington@samsung.com>2014-05-06 10:14:53 -0700
commitda9ef97372fb9c22f66507e0ab37968b1131f077 (patch)
tree043d32379172a4f1f80f623aa2856cb3240b05cd /test/pdiff
parent52b137bc3e3284ecef3102b0d976fd2320e0f473 (diff)
downloadcairo-da9ef97372fb9c22f66507e0ab37968b1131f077.tar.gz
Remove some useless declarations found by scan-build, the LLVM/clang static analyzer
Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
Diffstat (limited to 'test/pdiff')
-rw-r--r--test/pdiff/lpyramid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pdiff/lpyramid.c b/test/pdiff/lpyramid.c
index aa57ca2c7..bd402c7da 100644
--- a/test/pdiff/lpyramid.c
+++ b/test/pdiff/lpyramid.c
@@ -111,6 +111,6 @@ lpyramid_get_value (lpyramid_t *pyramid, int x, int y, int level)
int index = x + y * pyramid->width;
int l = level;
if (l > MAX_PYR_LEVELS)
- l = MAX_PYR_LEVELS;
- return pyramid->levels[level][index];
+ l = MAX_PYR_LEVELS;
+ return pyramid->levels[l][index];
}