staging: rtl8723bs: use DIV_ROUND_UP helper macro
authorWambui Karuga <wambui.karugax@gmail.com>
Sun, 13 Oct 2019 19:10:27 +0000 (22:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2019 13:36:58 +0000 (15:36 +0200)
commit807411911d99fe13ade4c02db4606f2df672f589
tree9947c5f3d99e0da526c06ef94e739925b81976ab
parent388fa43d5979c400be9a73649058b33a2701cea0
staging: rtl8723bs: use DIV_ROUND_UP helper macro

Use the DIV_ROUND_UP macro to replace open-coded divisor calculation
to improve readability.
Issue found using coccinelle:
@@
expression n,d;
@@
(
- ((n + d - 1) / d)
+ DIV_ROUND_UP(n,d)
|
- ((n + (d - 1)) / d)
+ DIV_ROUND_UP(n,d)
)

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/20191013191027.6470-1-wambui.karugax@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c