diff options
| author | simran singhal <singhalsimran0@gmail.com> | 2017-02-21 21:51:03 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 11:17:02 +0300 |
| commit | 0169acaea518098001bcdc239436cea821b28e1f (patch) | |
| tree | 0f7198e333090912ace9f417c280a597639a0bca /scripts/const_structs.checkpatch | |
| parent | 6e475350a4068580bfcec63ba5d9836d31965784 (diff) | |
| download | linux-0169acaea518098001bcdc239436cea821b28e1f.tar.xz | |
staging: vc04_services: Using macro DIV_ROUND_UP
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)).
It clarifies the divisor calculations. This occurence was detected using
the coccinelle script:
@@
expression e1;
expression e2;
@@
(
- ((e1) + e2 - 1) / (e2)
+ DIV_ROUND_UP(e1,e2)
|
- ((e1) + (e2 - 1)) / (e2)
+ DIV_ROUND_UP(e1,e2)
)
Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
