aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/tiocx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/sn/kernel/tiocx.c')
-rw-r--r--arch/ia64/sn/kernel/tiocx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/ia64/sn/kernel/tiocx.c b/arch/ia64/sn/kernel/tiocx.c
index b45db5133f55..7e9764a69dc8 100644
--- a/arch/ia64/sn/kernel/tiocx.c
+++ b/arch/ia64/sn/kernel/tiocx.c
@@ -486,11 +486,10 @@ static int __init tiocx_init(void)
486 486
487 bus_register(&tiocx_bus_type); 487 bus_register(&tiocx_bus_type);
488 488
489 for (cnodeid = 0; cnodeid < MAX_COMPACT_NODES; cnodeid++) { 489 for (cnodeid = 0; cnodeid < num_cnodes; cnodeid++) {
490 nasid_t nasid; 490 nasid_t nasid;
491 491
492 if ((nasid = cnodeid_to_nasid(cnodeid)) < 0) 492 nasid = cnodeid_to_nasid(cnodeid);
493 break; /* No more nasids .. bail out of loop */
494 493
495 if ((nasid & 0x1) && is_fpga_brick(nasid)) { 494 if ((nasid & 0x1) && is_fpga_brick(nasid)) {
496 struct hubdev_info *hubdev; 495 struct hubdev_info *hubdev;