Skip to content

Commit

Permalink
arm/imx/gpio: remove a BUG_ON in hot path
Browse files Browse the repository at this point in the history
Now if the problem occurs that triggered the BUG_ON before, the machine
runs in a NULL pointer dereference.  So it wouldn't be much harder now
to debug the situation if it occured.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  • Loading branch information
Uwe Kleine-König committed Feb 24, 2010
1 parent 3621f18 commit 6574305
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/plat-mxc/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat)
while (irq_stat != 0) {
int irqoffset = fls(irq_stat) - 1;

BUG_ON(!(irq_desc[gpio_irq_no_base + irqoffset].handle_irq));

if (port->both_edges & (1 << irqoffset))
mxc_flip_edge(port, irqoffset);

Expand Down

0 comments on commit 6574305

Please sign in to comment.