From 8032f526ef1d075e303342b7741db35faadfd00f Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Wed, 3 Dec 2014 14:51:16 +0200 Subject: tests: Run lib/igt.cocci MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found some open coded min()/max()/swap() macros. Signed-off-by: Ville Syrjälä --- tests/eviction_common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/eviction_common.c') diff --git a/tests/eviction_common.c b/tests/eviction_common.c index 52578e25..4a12dcbc 100644 --- a/tests/eviction_common.c +++ b/tests/eviction_common.c @@ -54,11 +54,8 @@ struct igt_eviction_test_ops static void exchange_uint32_t(void *array, unsigned i, unsigned j) { uint32_t *i_arr = array; - uint32_t i_tmp; - i_tmp = i_arr[i]; - i_arr[i] = i_arr[j]; - i_arr[j] = i_tmp; + swap(i_arr[i], i_arr[j]); } static int minor_evictions(int fd, struct igt_eviction_test_ops *ops, -- cgit v1.2.3