Skip to content

Commit

Permalink
ARM: asm/io.h: remove redundant #if !defined(readb) block
Browse files Browse the repository at this point in the history
readb is unconditionally defined earlier in io.h, so there's no point
checking whether it's undefined.

Signed-off-by: Rasmus Villemoes <[email protected]>
  • Loading branch information
Rasmus Villemoes authored and trini committed Oct 11, 2019
1 parent 909d039 commit 26c1060
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions arch/arm/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,21 +319,6 @@ extern void __readwrite_bug(const char *fn);
#define memcpy_fromio(a, b, c) memcpy((a), (void *)(b), (c))
#define memcpy_toio(a, b, c) memcpy((void *)(a), (b), (c))

#if !defined(readb)

#define readb(addr) (__readwrite_bug("readb"),0)
#define readw(addr) (__readwrite_bug("readw"),0)
#define readl(addr) (__readwrite_bug("readl"),0)
#define writeb(v,addr) __readwrite_bug("writeb")
#define writew(v,addr) __readwrite_bug("writew")
#define writel(v,addr) __readwrite_bug("writel")

#define eth_io_copy_and_sum(a,b,c,d) __readwrite_bug("eth_io_copy_and_sum")

#define check_signature(io,sig,len) (0)

#endif

/*
* If this architecture has ISA IO, then define the isa_read/isa_write
* macros.
Expand Down

0 comments on commit 26c1060

Please sign in to comment.