mirror of https://github.com/acidanthera/audk.git
Remove unused variable and function
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2606 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b19cfa69e7
commit
21500a434a
|
@ -57,25 +57,6 @@ EFI_DRIVER_BINDING_PROTOCOL gUnixSerialIoDriverBinding = {
|
|||
NULL
|
||||
};
|
||||
|
||||
STATIC
|
||||
VOID
|
||||
PrintSerialParameter(
|
||||
UNIX_SERIAL_IO_PRIVATE_DATA *Private
|
||||
)
|
||||
{
|
||||
struct termios Options;
|
||||
|
||||
if (Private->UnixThunk->Tcgetattr (Private->UnixHandle, &Options) == 0) {
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Input mode: 0x%x\r\n", Private->UnixHandle, Options.c_iflag));
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Output mode: 0x%x\r\n", Private->UnixHandle, Options.c_oflag));
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Control flag: 0x%x\r\n", Private->UnixHandle, Options.c_cflag));
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Local mode flag: 0x%x\r\n", Private->UnixHandle, Options.c_lflag));
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Line discipline: 0x%x\r\n", Private->UnixHandle, Options.c_line));
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Input Speed: 0x%x\r\n", Private->UnixHandle, Options.c_ispeed));
|
||||
DEBUG ((EFI_D_INFO, "Serial[0x%x]:Output Speed: 0x%x\r\n", Private->UnixHandle, Options.c_ospeed));
|
||||
}
|
||||
}
|
||||
|
||||
STATIC
|
||||
UINTN
|
||||
ConvertBaud2Unix (
|
||||
|
@ -1134,7 +1115,6 @@ Returns:
|
|||
UNIX_SERIAL_IO_PRIVATE_DATA *Private;
|
||||
UINTN Result;
|
||||
UINTN Status;
|
||||
struct termios Options;
|
||||
UINT32 Bits;
|
||||
EFI_TPL Tpl;
|
||||
UINTN Bytes;
|
||||
|
|
|
@ -147,10 +147,6 @@ typedef
|
|||
void
|
||||
(*UnixPerror) (__const char *__s);
|
||||
|
||||
typedef
|
||||
void
|
||||
(*UnixPrintf) (const char* format, ...);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixIoCtl) (int fd, unsigned long int __request, ...);
|
||||
|
@ -218,7 +214,6 @@ typedef struct _EFI_UNIX_THUNK_PROTOCOL {
|
|||
UnixTcflush Tcflush;
|
||||
UnixUgaCreate UgaCreate;
|
||||
UnixPerror Perror;
|
||||
UnixPrintf Printf;
|
||||
UnixIoCtl IoCtl;
|
||||
UnixFcntl Fcntl;
|
||||
UnixCfsetispeed Cfsetispeed;
|
||||
|
|
|
@ -191,7 +191,6 @@ EFI_UNIX_THUNK_PROTOCOL mUnixThunkTable = {
|
|||
tcflush,
|
||||
UgaCreate,
|
||||
perror,
|
||||
printf,
|
||||
ioctl,
|
||||
fcntl,
|
||||
cfsetispeed,
|
||||
|
|
Loading…
Reference in New Issue