Skip to content

Commit a0db8a7

Browse files
Dan Carpentermartinkpetersen
authored andcommitted
scsi: myrs: Fix the processor absent message in processor_show()
If both processors are absent then it's supposed to print that, but instead we print that just the second processor is absent. Fixes: 7726618 ("scsi: myrs: Add Mylex RAID controller (SCSI interface)") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 9a231ca commit a0db8a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/myrs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,11 +1366,11 @@ static ssize_t processor_show(struct device *dev,
13661366
first_processor, info->cpu[0].cpu_count,
13671367
info->cpu[1].cpu_name,
13681368
second_processor, info->cpu[1].cpu_count);
1369-
else if (!second_processor)
1369+
else if (first_processor && !second_processor)
13701370
ret = snprintf(buf, 64, "1: %s (%s, %d cpus)\n2: absent\n",
13711371
info->cpu[0].cpu_name,
13721372
first_processor, info->cpu[0].cpu_count);
1373-
else if (!first_processor)
1373+
else if (!first_processor && second_processor)
13741374
ret = snprintf(buf, 64, "1: absent\n2: %s (%s, %d cpus)\n",
13751375
info->cpu[1].cpu_name,
13761376
second_processor, info->cpu[1].cpu_count);

0 commit comments

Comments
 (0)