]> 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)
commit93b856adc528cede2f0d9d220adc918579b2d466
treed5e87e4e39fa38f1316bdf5b811e3bb06a881862
parent4e79ef18bf94af9769e3e8528eaabc142d1f39a7
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