diff options
| author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-02-22 17:57:42 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-25 22:35:10 -0800 |
| commit | dce57aef61ae49edf45df6fc09609e8da9b57265 (patch) | |
| tree | 89f46efac622be7bf24616be0aa4839ce09ab42b /include/memory | |
| parent | 3e8b9fe0602a25e37806e7b92408970da460b0e2 (diff) | |
| download | linux-dce57aef61ae49edf45df6fc09609e8da9b57265.tar.gz linux-dce57aef61ae49edf45df6fc09609e8da9b57265.tar.bz2 linux-dce57aef61ae49edf45df6fc09609e8da9b57265.zip | |
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 <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions
