Skip to content

Commit

Permalink
[SPARC64]: Tweak assertions in sun4v_build_virq().
Browse files Browse the repository at this point in the history
They are too strict.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 20, 2007
1 parent 2a26302 commit 5f7426c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,10 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino)
{
unsigned long sysino, hv_err;

BUG_ON(devhandle & ~IMAP_IGN);
BUG_ON(devino & ~IMAP_INO);
BUG_ON(devhandle & devino);

sysino = devhandle | devino;
BUG_ON(sysino & ~(IMAP_IGN | IMAP_INO));

hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino);
if (hv_err) {
Expand Down

0 comments on commit 5f7426c

Please sign in to comment.