diff options
author | 2024-11-06 06:10:50 +0000 | |
---|---|---|
committer | 2024-11-11 21:51:42 +0100 | |
commit | a36498d22c2b9ae8fda4e1c9e01c04897b1fd6d0 (patch) | |
tree | 44189cabec00372cce67f65a00cd69394bc89f01 /arch/sparc/include | |
parent | vt_buffer.h: get rid of dead code in default scr_...() instances (diff) | |
download | wireguard-linux-a36498d22c2b9ae8fda4e1c9e01c04897b1fd6d0.tar.xz wireguard-linux-a36498d22c2b9ae8fda4e1c9e01c04897b1fd6d0.zip |
asm/vga.h: don't bother with scr_mem{cpy,move}v() unless we need to
... if they are identical to fallbacks, just leave them alone.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/vga.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/sparc/include/asm/vga.h b/arch/sparc/include/asm/vga.h index 2952d667d936..cc2bc60b4c8b 100644 --- a/arch/sparc/include/asm/vga.h +++ b/arch/sparc/include/asm/vga.h @@ -14,8 +14,6 @@ #define VT_BUF_HAVE_RW #define VT_BUF_HAVE_MEMSETW -#define VT_BUF_HAVE_MEMCPYW -#define VT_BUF_HAVE_MEMMOVEW #undef scr_writew #undef scr_readw @@ -41,20 +39,6 @@ static inline void scr_memsetw(u16 *p, u16 v, unsigned int n) memset16(p, cpu_to_le16(v), n / 2); } -static inline void scr_memcpyw(u16 *d, u16 *s, unsigned int n) -{ - BUG_ON((long) d >= 0); - - memcpy(d, s, n); -} - -static inline void scr_memmovew(u16 *d, u16 *s, unsigned int n) -{ - BUG_ON((long) d >= 0); - - memmove(d, s, n); -} - #define VGA_MAP_MEM(x,s) (x) #endif |