Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edc74b24 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide-generic: probing fix



* Don't skip probing IDE port if the corresponding ide_hwifs[] slot
  is already occupied.

* Remove duplicate idx[i] assignment.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 73dc532b
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -118,15 +118,9 @@ static int __init ide_generic_init(void)
				continue;
			}

			/*
			 * Skip probing if the corresponding
			 * slot is already occupied.
			 */
			hwif = ide_find_port();
			if (hwif == NULL || hwif->index != i) {
				idx[i] = 0xff;
			if (hwif == NULL)
				continue;
			}

			hwif->chipset = ide_generic;