Module Name: src
Committed By: riastradh
Date: Sun Dec 19 10:59:55 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/asm: io.h
Log Message:
memset_io doesn't need to return anything.
Previous change to make argument volatile broke return, but we don't
need it anyway.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/external/bsd/drm2/include/asm/io.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/asm/io.h
diff -u src/sys/external/bsd/drm2/include/asm/io.h:1.7 src/sys/external/bsd/drm2/include/asm/io.h:1.8
--- src/sys/external/bsd/drm2/include/asm/io.h:1.7 Sun Dec 19 10:48:29 2021
+++ src/sys/external/bsd/drm2/include/asm/io.h Sun Dec 19 10:59:55 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: io.h,v 1.7 2021/12/19 10:48:29 riastradh Exp $ */
+/* $NetBSD: io.h,v 1.8 2021/12/19 10:59:55 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
#define memcpy_toio(d,s,n) memcpy(__UNVOLATILE(d),(s),(n))
#if defined(__NetBSD__) && defined(__aarch64__)
-static inline void *
+static inline void
memset_io(volatile void *b, int c, size_t len)
{
volatile uint8_t *ptr = b;
@@ -57,8 +57,6 @@ memset_io(volatile void *b, int c, size_
*ptr++ = c;
len--;
}
-
- return b;
}
#else
#define memset_io(b,c,n) memset(__UNVOLATILE(b),(c),(n))