diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-07-19 02:16:51 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-20 00:28:43 -0400 |
commit | 5f7426c0e16dba118aa1b18f3c97c3d7adfb7540 (patch) | |
tree | 3ccab7349691b3268a3f4593ac84d826560bcba6 /arch/sparc64/kernel | |
parent | 2a26302164e0d26df94810ffa2eabcad0fc55c95 (diff) |
[SPARC64]: Tweak assertions in sun4v_build_virq().
They are too strict.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r-- | arch/sparc64/kernel/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index 8cb3358674f5..c72795666a62 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c | |||
@@ -701,10 +701,10 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino) | |||
701 | { | 701 | { |
702 | unsigned long sysino, hv_err; | 702 | unsigned long sysino, hv_err; |
703 | 703 | ||
704 | BUG_ON(devhandle & ~IMAP_IGN); | 704 | BUG_ON(devhandle & devino); |
705 | BUG_ON(devino & ~IMAP_INO); | ||
706 | 705 | ||
707 | sysino = devhandle | devino; | 706 | sysino = devhandle | devino; |
707 | BUG_ON(sysino & ~(IMAP_IGN | IMAP_INO)); | ||
708 | 708 | ||
709 | hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino); | 709 | hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino); |
710 | if (hv_err) { | 710 | if (hv_err) { |