octeontx2-af: use swap() to make code cleaner

Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Yang Guang 2021-11-04 14:21:58 +08:00 committed by David S. Miller
parent 0c500ef5d3
commit d7be1d1cfb
1 changed files with 1 additions and 3 deletions

View File

@ -2450,9 +2450,7 @@ alloc:
bmap = mcam->bmap_reverse;
start = mcam->bmap_entries - start;
end = mcam->bmap_entries - end;
index = start;
start = end;
end = index;
swap(start, end);
} else {
bmap = mcam->bmap;
}