diff options
| author | Markus Lidel <markus.lidel@shadowconnect.com> | 2004-11-15 04:12:00 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-15 04:12:00 -0800 |
| commit | 1163d2c331b166bb234ae7100b7883cbcda3e136 (patch) | |
| tree | 3ac2b3299f7cfcedbdbcfbcc7ac2f7803474a2ee /include/linux/i2o.h | |
| parent | 23559ca73d0f4301538d05f7cdf8923c46189baa (diff) | |
[PATCH] i2o: changed code with BUG() to BUG_ON()
- changed code with BUG() to use BUG_ON() which could be optimized by some
platforms (original from Milton Miller)
Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/i2o.h')
| -rw-r--r-- | include/linux/i2o.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/i2o.h b/include/linux/i2o.h index f571709b0443..a8ac18b36bea 100644 --- a/include/linux/i2o.h +++ b/include/linux/i2o.h @@ -515,10 +515,8 @@ static inline void i2o_flush_reply(struct i2o_controller *c, u32 m) static inline struct i2o_message *i2o_msg_out_to_virt(struct i2o_controller *c, u32 m) { - if (unlikely - (m < c->out_queue.phys - || m >= c->out_queue.phys + c->out_queue.len)) - BUG(); + BUG_ON(m < c->out_queue.phys + || m >= c->out_queue.phys + c->out_queue.len); return c->out_queue.virt + (m - c->out_queue.phys); }; |
