diff options
| author | simran singhal <singhalsimran0@gmail.com> | 2017-02-22 12:10:15 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 11:17:02 +0300 |
| commit | bdc58e3bef647b39145ebc951bb4b1904e239212 (patch) | |
| tree | 2c38eba1910dc9535d91dc5c3919316ae27268fb /scripts/const_structs.checkpatch | |
| parent | 3efc66167007f4bd77d7690bf35ef1339b8bf374 (diff) | |
| download | linux-bdc58e3bef647b39145ebc951bb4b1904e239212.tar.xz | |
staging: most: 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
