diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2021-11-26 14:20:16 +0000 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2021-11-29 10:32:50 +0000 |
commit | 3d9cde18e791d5038b05be1f52effedc5a322af3 (patch) | |
tree | 30e390a5c13ff5c92a6b41cc7d4224ab7fcfda12 /tests/i915/api_intel_allocator.c | |
parent | bf11f87c27ad1cec3e60bd31c23080d19aa093f3 (diff) |
tests/api_intel_allocator: Fix build warning
.../tests/i915/api_intel_allocator.c: In function ‘basic_alloc’:
.../tests/i915/api_intel_allocator.c:158:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
158 | if (j == i)
| ^~
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'tests/i915/api_intel_allocator.c')
-rw-r--r-- | tests/i915/api_intel_allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/api_intel_allocator.c b/tests/i915/api_intel_allocator.c index 4b74317e..6d7764ca 100644 --- a/tests/i915/api_intel_allocator.c +++ b/tests/i915/api_intel_allocator.c @@ -157,7 +157,7 @@ static void basic_alloc(int fd, int cnt, uint8_t type) for (j = 0; j < cnt; j++) { if (j == i) continue; - igt_assert(!overlaps(&obj[i], &obj[j])); + igt_assert(!overlaps(&obj[i], &obj[j])); } } |