]> git.baikalelectronics.ru Git - 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)
commitc03ac728f5066ce1ae63c9aa097944eaa3b3e6e4
treed5e87e4e39fa38f1316bdf5b811e3bb06a881862
parent41e8ce6ed15b680f7ce0f9c40cb6916305cfc0a9
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