diff --git a/kernel/orbis/include/orbis/IoDevice.hpp b/kernel/orbis/include/orbis/IoDevice.hpp index 07db206a9..2049e3f47 100644 --- a/kernel/orbis/include/orbis/IoDevice.hpp +++ b/kernel/orbis/include/orbis/IoDevice.hpp @@ -101,7 +101,7 @@ template struct IoDeviceWithIoctl : IoDevice { void addIoctl(ErrorCode (*handler)(Thread *thread, InstanceT *device, T &arg)) { constexpr auto id = ioctl::id(Cmd); - assert(ioctlTable[id].handler == unhandledIoctl); + assert(ioctlTable[id].handler == nullptr); IoctlHandlerEntry &entry = ioctlTable[id]; @@ -132,7 +132,7 @@ template struct IoDeviceWithIoctl : IoDevice { void addIoctl(ErrorCode (*handler)(Thread *thread, InstanceT *device)) { constexpr auto id = ioctl::id(Cmd); - assert(ioctlTable[id].handler == unhandledIoctl); + assert(ioctlTable[id].handler == nullptr); IoctlHandlerEntry &entry = ioctlTable[id]; @@ -156,7 +156,7 @@ template struct IoDeviceWithIoctl : IoDevice { void addIoctl(std::pair (*handler)(Thread *thread, InstanceT *device)) { constexpr auto id = ioctl::id(Cmd); - assert(ioctlTable[id].handler == unhandledIoctl); + assert(ioctlTable[id].handler == nullptr); IoctlHandlerEntry &entry = ioctlTable[id];