From: René Scharfe Date: Sat, 28 Jan 2017 21:40:58 +0000 (+0100) Subject: use SWAP macro X-Git-Tag: v2.12.0-rc2~18^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/35d803bc9a0d21c36b1381f6e42455beeb73b715?hp=35d803bc9a0d21c36b1381f6e42455beeb73b715 use SWAP macro Apply the semantic patch swap.cocci to convert hand-rolled swaps to use the macro SWAP. The resulting code is shorter and easier to read, the object code is effectively unchanged. The patch for object.c had to be hand-edited in order to preserve the comment before the change; Coccinelle tried to eat it for some reason. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano ---