diff options
| author | Bhaktipriya Shridhar <[email protected]> | 2016-02-22 17:57:42 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-02-25 22:35:10 -0800 |
| commit | dce57aef61ae49edf45df6fc09609e8da9b57265 (patch) | |
| tree | 89f46efac622be7bf24616be0aa4839ce09ab42b /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 3e8b9fe0602a25e37806e7b92408970da460b0e2 (diff) | |
staging: most: hdm-usb: Use 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)
)
The macro CEILING was dropped altogether and has been replaced with
DIV_ROUND_UP.
Signed-off-by: Bhaktipriya Shridhar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions