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: Alexander Curtin <alexander.curtin@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <timothy.sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a729782e2d
commit
66b3a75976
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue