]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: nand: gpmi: replace _manual_ swap with swap macro
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 3 Nov 2017 20:31:47 +0000 (15:31 -0500)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 30 Nov 2017 09:57:33 +0000 (10:57 +0100)
commitb13a9735ae74d4fa9e4d53b4dcfdd779997c8e0e
treed5e87e4e39fa38f1316bdf5b811e3bb06a881862
parentf883199d17b87e86a4ebd50bdee69285814bdce7
mtd: nand: gpmi: replace _manual_ swap with swap macro

Make use of the swap macro and remove unnecessary variables swap.
This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c