[PATCH] powerpc: use swap() to make code cleaner

Stephen Rothwell sfr at canb.auug.org.au
Thu Nov 4 21:06:56 AEDT 2021


Hi,

On Thu,  4 Nov 2021 14:17:09 +0800 davidcomponentone at gmail.com wrote:
>
> From: Yang Guang <yang.guang5 at zte.com.cn>
> 
> Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
> opencoding it.

So if swap() is in the above include file, then you should include it.

-- 
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20211104/90680422/attachment.sig>


More information about the Linuxppc-dev mailing list