Fix return values.

This commit is contained in:
2019-10-26 22:24:24 +01:00
parent b613376a68
commit 386706670a

View File

@@ -28,7 +28,7 @@ void* DeviceOpen(const char* device_path)
#if defined(__linux__) && !defined(__ANDROID__)
return LinuxOpenDevice(device_path);
#else
return -1;
return NULL;
#endif
}
@@ -36,8 +36,6 @@ void DeviceClose(void* device_ctx)
{
#if defined(__linux__) && !defined(__ANDROID__)
return LinuxCloseDevice(device_ctx);
#else
return -1;
#endif
}