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

Commit 98add71e authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide-cd: remove BUG_ON() from cdrom_newpc_intr()



There is no need for it anylonger and ide_set_handler() complains
if ->handler is not NULL anyway.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 17802998
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1397,8 +1397,6 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
	if (len > 0)
	if (len > 0)
		ide_cd_pad_transfer(drive, xferfunc, len);
		ide_cd_pad_transfer(drive, xferfunc, len);


	BUG_ON(HWGROUP(drive)->handler != NULL);

	ide_set_handler(drive, cdrom_newpc_intr, rq->timeout, NULL);
	ide_set_handler(drive, cdrom_newpc_intr, rq->timeout, NULL);
	return ide_started;
	return ide_started;
}
}