Fix for drivers/pnp/interface.c
PATCH 1/1 Fix for drivers/pnp/interface.c
Hi.
A BK pull from this morning brings in a number of PNP changes, and there is a problem with interface.c. The patch below moves the variable declarations to the beginning of the block, and the code now compiles without problems. I'm using GCC-2.95.4 from Debian, BTW.
Art Haas
===== drivers/pnp/interface.c 1.10 vs edited =====
drivers/pnp/interface.c +2 -2
@@ -432,11 +432,11 @@ goto done; }if (!strnicmp (buf,"set" ,3 )) { +struct pnp_resource_table res; +int nport =0 , nmem =0 , nirq =0 , ndma =0 ;if (dev->active) goto done; buf +=3 ; -struct pnp_resource_table res; -int nport =0 , nmem =0 , nirq =0 , ndma =0 ;pnp_init_resource_table (&res);while (1 ) {while (isspace (*buf))
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, Historical Review of Pennsylvania, 1759