Ticket #12919: 0029-pci-header.awk-remove-unused-variable.patch

File 0029-pci-header.awk-remove-unused-variable.patch, 1.1 KB (added by mt, 8 years ago)
  • src/apps/devices/pci-header.awk

    From 0505c5c7da09072bacbde1bcbac0bdc1a7a687f2 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 18 Aug 2016 19:58:06 +0900
    Subject: [PATCH 29/29] pci-header.awk: remove unused variable.
    
    ---
     src/apps/devices/pci-header.awk | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/devices/pci-header.awk b/src/apps/devices/pci-header.awk
    index f046ef1..e28c16a 100644
    a b END {  
    130130
    131131    if ( devicecount > 0 ) {
    132132
    133         print "typedef struct _PCI_DEVTABLE\n{\n\tunsigned short    VenId ;\n\tunsigned short   DevId ;\n\tunsigned short\tSubVenId ;\n\tunsigned short\tSubDevId ;\n\tconst char *\tChipDesc ;\n\tconst char *\tChip;\n}  PCI_DEVTABLE, *PPCI_DEVTABLE ;\n"  > ofile
     133        print "typedef struct _PCI_DEVTABLE\n{\n\tunsigned short    VenId ;\n\tunsigned short   DevId ;\n\tunsigned short\tSubVenId ;\n\tunsigned short\tSubDevId ;\n\tconst char *\tChipDesc ;\n}  PCI_DEVTABLE, *PPCI_DEVTABLE ;\n"  > ofile
    134134        print "PCI_DEVTABLE\tPciDevTable [] =\n{" > ofile
    135135        for (i = 1; i <= devicecount; i++) {
    136136