Skip to content

Commit

Permalink
kernel/range: remove unused definition of ARRAY_SIZE()
Browse files Browse the repository at this point in the history
Remove duplicate definition of ARRAY_SIZE(), which was never used anyway.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
geertu authored and torvalds committed Aug 10, 2010
1 parent 2ee7c92 commit 459b37d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kernel/range.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

#include <linux/range.h>

#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)
Expand Down

0 comments on commit 459b37d

Please sign in to comment.