mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-10-25 17:23:53 +02:00 
			
		
		
		
	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 |   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 | STATIC | ||||||
| UINTN | UINTN | ||||||
| ConvertBaud2Unix ( | ConvertBaud2Unix ( | ||||||
| @ -1134,7 +1115,6 @@ Returns: | |||||||
|   UNIX_SERIAL_IO_PRIVATE_DATA *Private; |   UNIX_SERIAL_IO_PRIVATE_DATA *Private; | ||||||
|   UINTN                       Result; |   UINTN                       Result; | ||||||
|   UINTN                       Status; |   UINTN                       Status; | ||||||
|   struct termios              Options; |  | ||||||
|   UINT32                      Bits; |   UINT32                      Bits; | ||||||
|   EFI_TPL                     Tpl; |   EFI_TPL                     Tpl; | ||||||
|   UINTN                       Bytes; |   UINTN                       Bytes; | ||||||
|  | |||||||
| @ -147,10 +147,6 @@ typedef | |||||||
| void | void | ||||||
| (*UnixPerror) (__const char *__s); | (*UnixPerror) (__const char *__s); | ||||||
| 
 | 
 | ||||||
| typedef |  | ||||||
| void |  | ||||||
| (*UnixPrintf) (const char* format, ...); |  | ||||||
| 
 |  | ||||||
| typedef  | typedef  | ||||||
| int  | int  | ||||||
| (*UnixIoCtl) (int fd, unsigned long int __request, ...); | (*UnixIoCtl) (int fd, unsigned long int __request, ...); | ||||||
| @ -218,7 +214,6 @@ typedef struct _EFI_UNIX_THUNK_PROTOCOL { | |||||||
|   UnixTcflush                         Tcflush; |   UnixTcflush                         Tcflush; | ||||||
|   UnixUgaCreate			                  UgaCreate; |   UnixUgaCreate			                  UgaCreate; | ||||||
|   UnixPerror                          Perror; |   UnixPerror                          Perror; | ||||||
|   UnixPrintf                          Printf; |  | ||||||
|   UnixIoCtl                           IoCtl; |   UnixIoCtl                           IoCtl; | ||||||
|   UnixFcntl                           Fcntl; |   UnixFcntl                           Fcntl; | ||||||
|   UnixCfsetispeed                     Cfsetispeed; |   UnixCfsetispeed                     Cfsetispeed; | ||||||
|  | |||||||
| @ -191,7 +191,6 @@ EFI_UNIX_THUNK_PROTOCOL mUnixThunkTable = { | |||||||
|   tcflush, |   tcflush, | ||||||
|   UgaCreate, |   UgaCreate, | ||||||
|   perror, |   perror, | ||||||
|   printf, |  | ||||||
|   ioctl, |   ioctl, | ||||||
|   fcntl, |   fcntl, | ||||||
|   cfsetispeed, |   cfsetispeed, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user