ide: remove redundant code from ide_end_drive_cmd()