Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/asm memset_io doesn't need to ...



details:   https://anonhg.NetBSD.org/src/rev/a3ef79cf7759
branches:  trunk
changeset: 1028414:a3ef79cf7759
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 10:59:55 2021 +0000

description:
memset_io doesn't need to return anything.

Previous change to make argument volatile broke return, but we don't
need it anyway.

diffstat:

 sys/external/bsd/drm2/include/asm/io.h |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r c117457dd6d4 -r a3ef79cf7759 sys/external/bsd/drm2/include/asm/io.h
--- a/sys/external/bsd/drm2/include/asm/io.h    Sun Dec 19 10:59:48 2021 +0000
+++ b/sys/external/bsd/drm2/include/asm/io.h    Sun Dec 19 10:59:55 2021 +0000
@@ -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 @@
                *ptr++ = c;
                len--;
        }
-
-       return b;
 }
 #else
 #define        memset_io(b,c,n)        memset(__UNVOLATILE(b),(c),(n))



Home | Main Index | Thread Index | Old Index