Fixed the fix for swlock work

This commit is contained in:
Angel Cascarino
2022-01-11 11:42:41 +00:00
parent 36d325a457
commit 5bb44c54e1

View File

@@ -242,14 +242,6 @@ unsigned hidGetNextReportTime( const unsigned id )
// return retVal;
//}
unsigned hidIsReportDescriptorPrepared( void )
{
swlock_acquire(&hidStaticVarLock);
unsigned retVal = s_hidReportDescriptorPrepared;
swlock_release(&hidStaticVarLock);
return retVal;
}
unsigned char* hidGetReportDescriptor( void )
{
unsigned char* retVal = NULL;
@@ -550,13 +542,6 @@ unsigned hidSetReportItem(
const unsigned char data[]
)
{
if (!lockAllocated)
{
&hidStaticVarLock = hwlock_alloc();
lockAllocated = 1;
}
unsigned retVal = HID_STATUS_IN_USE;
if( !s_hidReportDescriptorPrepared ) {