From: Jon Frisch Date: Fri, 17 Mar 2017 15:27:12 +0000 (-0400) Subject: staging: unisys: include: remove macro lengthof X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=245b746d459c3732861b37ceef6523c6098ad3d0;p=openwrt%2Fstaging%2Fblogic.git staging: unisys: include: remove macro lengthof This patch removes the unused macro lengthof. Signed-off-by: Jon Frisch Signed-off-by: David Kershner Reviewed-by: Tim Sell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/include/channel.h b/drivers/staging/unisys/include/channel.h index 8c6a7ad2f46c..e5e36980ace5 100644 --- a/drivers/staging/unisys/include/channel.h +++ b/drivers/staging/unisys/include/channel.h @@ -38,9 +38,6 @@ #define SIGNATURE_64(A, B, C, D, E, F, G, H) \ (SIGNATURE_32(A, B, C, D) | ((u64)(SIGNATURE_32(E, F, G, H)) << 32)) -#ifndef lengthof -#define lengthof(TYPE, MEMBER) (sizeof(((TYPE *)0)->MEMBER)) -#endif #ifndef COVER #define COVER(v, d) ((d) * DIV_ROUND_UP(v, d)) #endif