[rtems-libbsd commit] DEVICE(9): Fix __BUS_ACCESSOR()

Sebastian Huber sebh at rtems.org
Mon Jan 8 13:01:28 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    4e17f143deaa586a886c4efd5d5a9b9c1e8f9c0d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4e17f143deaa586a886c4efd5d5a9b9c1e8f9c0d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan  8 13:54:29 2018 +0100

DEVICE(9): Fix __BUS_ACCESSOR()

---

 freebsd/sys/sys/bus.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/freebsd/sys/sys/bus.h b/freebsd/sys/sys/bus.h
index e882823..626026d 100644
--- a/freebsd/sys/sys/bus.h
+++ b/freebsd/sys/sys/bus.h
@@ -814,10 +814,8 @@ static __inline type varp ## _get_ ## var(device_t dev)			\
 static __inline void varp ## _set_ ## var(device_t dev, type t)		\
 {									\
 	uintptr_t v = (uintptr_t) t;					\
-	int err;							\
 	BUS_WRITE_IVAR(device_get_parent(dev), dev,			\
 	    ivarp ## _IVAR_ ## ivar, v);				\
-	BSD_ASSERT(err == 0);						\
 }
 #endif /* __rtems__ */
 




More information about the vc mailing list