From: Eric Sesterhenn / snakebyte <snakebyte@gmx.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [Patch] change if() BUG();
Date: Tue, 17 Jan 2006 21:25:16 +0000 [thread overview]
Message-ID: <1137533116.20230.15.camel@alice> (raw)
[-- Attachment #1: Type: text/plain, Size: 639 bytes --]
hi,
this patch changes the if() BUG(); construct in
drivers/ieee1394/cmp.c to a BUG_ON; so defining
BUG to a no-op is safe.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
--- linux-2.6.15-git11/drivers/ieee1394/cmp.c.orig 2006-01-17 22:11:13.000000000 +0100
+++ linux-2.6.15-git11/drivers/ieee1394/cmp.c 2006-01-17 22:11:29.000000000 +0100
@@ -129,7 +129,7 @@ void cmp_unregister_opcr(struct hpsb_hos
ch = hpsb_get_hostinfo(&cmp_highlevel, host);
plug = (struct plug *)opcr;
- if (plug - ch->opcr >= ch->u.ompr.nplugs) BUG();
+ BUG_ON(plug - ch->opcr >= ch->u.ompr.nplugs);
plug->u.pcr.online = 0;
plug->update = NULL;
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next reply other threads:[~2006-01-17 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-17 21:25 Eric Sesterhenn / snakebyte [this message]
2006-01-17 22:24 ` [KJ] [Patch] change if() BUG(); Alexey Dobriyan
2006-01-19 2:53 ` Adrian Bunk
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=1137533116.20230.15.camel@alice \
--to=snakebyte@gmx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.