From c111036f2028bbf2dd91b956be10addb31e8b3b1 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 29 Jan 2007 02:15:56 +0000 Subject: [PATCH] Fix the build break by removing an unreferenced static function. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2330 6f19259b-4bc3-4df7-8a09-765794883524 --- .../UsbMassStorage/Dxe/UsbMassStorageHelper.c | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorageHelper.c b/EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorageHelper.c index c011349a78..eb7a8bb63a 100644 --- a/EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorageHelper.c +++ b/EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorageHelper.c @@ -59,12 +59,6 @@ IsMediaWriteProtected ( IN UINTN SenseCounts ); -STATIC -BOOLEAN -IsLogicalUnitCommunicationOverRun ( - IN REQUEST_SENSE_DATA *SenseData, - IN UINTN SenseCounts - ); EFI_STATUS USBFloppyPacketCommand ( @@ -1546,29 +1540,3 @@ IsMediaWriteProtected ( return IsWriteProtected; } -BOOLEAN -IsLogicalUnitCommunicationOverRun ( - IN REQUEST_SENSE_DATA *SenseData, - IN UINTN SenseCounts - ) -{ - REQUEST_SENSE_DATA *SensePtr; - UINTN Index; - BOOLEAN IsOverRun; - - IsOverRun = FALSE; - SensePtr = SenseData; - - for (Index = 0; Index < SenseCounts; Index++) { - - if ((SensePtr->sense_key == SK_NOT_READY) && - (SensePtr->addnl_sense_code == ASC_LOGICAL_UNIT_STATUS) && - (SensePtr->addnl_sense_code_qualifier == ASCQ_LOGICAL_UNIT_OVERRUN)) { - IsOverRun = TRUE; - } - - SensePtr++; - } - - return IsOverRun; -}