DEVICE(9): Fix __BUS_ACCESSOR()

This commit is contained in:
Sebastian Huber 2018-01-08 13:54:29 +01:00
parent 4e3a5d3f03
commit 4e17f143de

View File

@ -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__ */