From: Geert Uytterhoeven Date: Tue, 10 Aug 2010 00:20:31 +0000 (-0700) Subject: kernel/range: remove unused definition of ARRAY_SIZE() X-Git-Tag: firefly_0821_release~9833^2~1103 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=459b37d423104f00e87d1934821bc8739979d0e4;p=firefly-linux-kernel-4.4.55.git kernel/range: remove unused definition of ARRAY_SIZE() Remove duplicate definition of ARRAY_SIZE(), which was never used anyway. Signed-off-by: Geert Uytterhoeven Cc: Yinghai Lu Cc: "H. Peter Anvin" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/range.c b/kernel/range.c index 74e2e6114927..471b66acabb5 100644 --- a/kernel/range.c +++ b/kernel/range.c @@ -7,10 +7,6 @@ #include -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#endif - int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) { if (start >= end)