[PATCH] blkparse: bad ncpus check
authorJens Axboe <axboe@suse.de>
Thu, 22 Sep 2005 14:15:45 +0000 (16:15 +0200)
committerJens Axboe <axboe@suse.de>
Thu, 22 Sep 2005 14:15:45 +0000 (16:15 +0200)
blkparse.c

index 57385ec4374435f3dd496a0f16dba2dd9515c459..df724866430a2463bb0f82a09e557536faa988c4 100644 (file)
@@ -1433,12 +1433,6 @@ static void show_entries_rb(int piped)
                        break;
                }
 
-               if (bit->cpu > pdi->ncpus) {
-                       fprintf(stderr, "Unknown CPU ID? (%d, device %d,%d)\n",
-                               cpu, MAJOR(bit->device), MINOR(bit->device));
-                       break;
-               }
-
                if (!pci || cpu != bit->cpu) {
                        cpu = bit->cpu;
                        pci = get_cpu_info(pdi, cpu);