Commit 66b3a759 authored by Alexander Curtin's avatar Alexander Curtin Committed by Greg Kroah-Hartman

staging: unisys: include: replaced COVERQ with DIV_ROUND_UP

COVERQ is functionally equivalent to DIV_ROUND_UP and was only used
to define the COVER macro.
Signed-off-by: default avatarAlexander Curtin <alexander.curtin@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a729782e
...@@ -41,11 +41,8 @@ ...@@ -41,11 +41,8 @@
#ifndef lengthof #ifndef lengthof
#define lengthof(TYPE, MEMBER) (sizeof(((TYPE *)0)->MEMBER)) #define lengthof(TYPE, MEMBER) (sizeof(((TYPE *)0)->MEMBER))
#endif #endif
#ifndef COVERQ
#define COVERQ(v, d) (((v) + (d) - 1) / (d))
#endif
#ifndef COVER #ifndef COVER
#define COVER(v, d) ((d) * COVERQ(v, d)) #define COVER(v, d) ((d) * DIV_ROUND_UP(v, d))
#endif #endif
#define ULTRA_CHANNEL_PROTOCOL_SIGNATURE SIGNATURE_32('E', 'C', 'N', 'L') #define ULTRA_CHANNEL_PROTOCOL_SIGNATURE SIGNATURE_32('E', 'C', 'N', 'L')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment