mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
tests: Run lib/igt.cocci
Found some open coded min()/max()/swap() macros. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
@@ -171,11 +171,8 @@ static void render_copyfunc(struct igt_buf *src,
|
||||
static void exchange_uint(void *array, unsigned i, unsigned j)
|
||||
{
|
||||
unsigned *i_arr = array;
|
||||
unsigned 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 void run_sync_test(int num_buffers, bool verify)
|
||||
|
||||
Reference in New Issue
Block a user