kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Travis Spencer <travislspencer@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH 2.6.12-rc3] Supress warning caused by label being
Date: Thu, 19 May 2005 05:56:16 +0000	[thread overview]
Message-ID: <e3b7bac0505182256a031ea8@mail.gmail.com> (raw)

When the macro `__ISAPNP__' is undefined, the label `ready' is defined
but the only corresponding goto statement isn't .  This results in a
warning from the compiler.  To avoid this message, a `goto ready'
statement is added _just_ above the label.  Thus, when `__ISAPNP__'
isn't defined, the newly added `goto ready' is a noop and the compiler
is quiet.

Signed-off-by: Travis L. Spencer <tspencer@cs.pdx.edu>

--- drivers/isdn/hisax/diva.c~  2005-05-18 22:34:44.074178000 -0700
+++ drivers/isdn/hisax/diva.c   2005-05-18 22:33:26.745944000 -0700
@@ -1101,6 +1101,7 @@ setup_diva(struct IsdnCard *card)
                        bytecnt = 32;
                }
        }
+      goto ready; /* Assure that `ready' is used even if `__ISAPNP__' isn't. */
 ready:
        printk(KERN_INFO
                "Diva: %s card configured at %#lx IRQ %d\n",

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

             reply	other threads:[~2005-05-19  5:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  5:56 Travis Spencer [this message]
2005-05-19 15:01 ` [KJ] [PATCH 2.6.12-rc3] Supress warning caused by label being Travis Spencer

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=e3b7bac0505182256a031ea8@mail.gmail.com \
    --to=travislspencer@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).