public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Art Haas <ahaas@airmail.net>
To: linux-kernel@vger.kernel.org
Cc: Jaroslav Kysela <perex@suse.cz>, Adam Belay <ambx1@neo.rr.com>
Subject: [PATCH] Fix for drivers/pnp/interface.c
Date: Sat, 22 Feb 2003 13:18:25 -0600	[thread overview]
Message-ID: <20030222191825.GB28591@debian> (raw)

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 =====
--- 1.10/drivers/pnp/interface.c	Wed Feb 19 11:54:46 2003
+++ edited/drivers/pnp/interface.c	Sat Feb 22 11:47:10 2003
@@ -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))
-- 
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

                 reply	other threads:[~2003-02-22 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030222191825.GB28591@debian \
    --to=ahaas@airmail.net \
    --cc=ambx1@neo.rr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox