commit | b1b20e7155de612f065dbc0cda53186605fa944c | [log] [tgz] |
---|---|---|
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | Sun Feb 21 15:43:00 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 11 22:09:09 2016 -0800 |
tree | 99d85a9305e83533d091149ccad5d9564599c7f2 | |
parent | 4532150762ceb0d6fd765ebcb3ba6966fbb8faab [diff] |
staging: rtl8192u: ieee80211: Use macro DIV_ROUND_UP The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This was done 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: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>