[9XR-PRO] Warning fixed (ATMEL code)

This commit is contained in:
Bertrand Songis
2017-01-24 18:57:45 +01:00
parent 0d05beae80
commit 8f970fdbbf
@@ -512,10 +512,12 @@ void USBDDriver_Initialize(
pDriver->pDescriptors = pDescriptors; pDriver->pDescriptors = pDescriptors;
pDriver->pInterfaces = pInterfaces; pDriver->pInterfaces = pInterfaces;
#if 0
// Initialize interfaces array if not null // Initialize interfaces array if not null
if (pInterfaces != 0) { if (pInterfaces != 0) {
memset(pInterfaces, 0, sizeof(pInterfaces)); memset(pInterfaces, sizeof(*pInterfaces), 0); // Really wrong, but never happens :)
} }
#endif
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------