]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: ftl: Use DIV_ROUND_UP()
authorArushi Singhal <arushisinghal19971997@gmail.com>
Sun, 25 Mar 2018 15:37:43 +0000 (21:07 +0530)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 29 Mar 2018 07:36:01 +0000 (09:36 +0200)
commit41dd3b1cd60346b608f01b95f4516232105fbb67
tree24e5318b3e6675915b930d114b21365dd81524ab
parentfd9b54273129ec53217ebf6415e592d2cf8c6e4a
mtd: ftl: Use DIV_ROUND_UP()

The kernel.h macro DIV_ROUND_UP performs the computation
(((n) + (d) - 1) / (d)) but is perhaps more readable.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/ftl.c