From 057972bd250520906c28cd80ecacd08540038f9a Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 28 Nov 2011 13:14:51 +0000 Subject: [PATCH] Remove unnecessary ErrorCode variable initializations from the LowLevel Host mode demos. --- Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c | 2 +- Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c b/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c index fea9704f1d..765d0ed5f2 100644 --- a/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c +++ b/Demos/Host/LowLevel/MassStorageHost/Lib/MassStoreCommands.c @@ -326,7 +326,7 @@ uint8_t MassStore_MassStorageReset(void) */ uint8_t MassStore_GetMaxLUN(uint8_t* const MaxLUNIndex) { - uint8_t ErrorCode = HOST_SENDCONTROL_Successful; + uint8_t ErrorCode; USB_ControlRequest = (USB_Request_Header_t) { diff --git a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c index 0d5a7e04a9..e335072f9b 100644 --- a/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c +++ b/Demos/Host/LowLevel/PrinterHost/Lib/PrinterCommands.c @@ -75,7 +75,7 @@ uint8_t Printer_SendData(const void* const PrinterCommands, uint8_t Printer_GetDeviceID(char* DeviceIDString, const uint16_t BufferSize) { - uint8_t ErrorCode = HOST_SENDCONTROL_Successful; + uint8_t ErrorCode; uint16_t DeviceIDStringLength = 0; USB_ControlRequest = (USB_Request_Header_t)