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

Commit 419d4741 authored by Borislav Petkov's avatar Borislav Petkov Committed by Bartlomiej Zolnierkiewicz
Browse files

ide-tape: make function name more accurate



idetape_active_next_stage() was rather ambiguous wrt its purpose. Make that
more explicit and remove superfluous comment.

Signed-off-by: default avatarBorislav Petkov <bbpetkov@yahoo.de>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent fa36625b
Loading
Loading
Loading
Loading
+3 −6
Original line number Original line Diff line number Diff line
@@ -846,10 +846,7 @@ static void idetape_analyze_error(ide_drive_t *drive, u8 *sense)
	}
	}
}
}


/*
static void idetape_activate_next_stage(ide_drive_t *drive)
 * idetape_active_next_stage will declare the next stage as "active".
 */
static void idetape_active_next_stage (ide_drive_t *drive)
{
{
	idetape_tape_t *tape = drive->driver_data;
	idetape_tape_t *tape = drive->driver_data;
	idetape_stage_t *stage = tape->next_stage;
	idetape_stage_t *stage = tape->next_stage;
@@ -1040,7 +1037,7 @@ static int idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects)
			}
			}
		}
		}
		if (tape->next_stage != NULL) {
		if (tape->next_stage != NULL) {
			idetape_active_next_stage(drive);
			idetape_activate_next_stage(drive);


			/*
			/*
			 * Insert the next request into the request queue.
			 * Insert the next request into the request queue.
@@ -2414,7 +2411,7 @@ static void idetape_insert_pipeline_into_queue (ide_drive_t *drive)
		return;
		return;
	if (!idetape_pipeline_active(tape)) {
	if (!idetape_pipeline_active(tape)) {
		set_bit(IDETAPE_PIPELINE_ACTIVE, &tape->flags);
		set_bit(IDETAPE_PIPELINE_ACTIVE, &tape->flags);
		idetape_active_next_stage(drive);
		idetape_activate_next_stage(drive);
		(void) ide_do_drive_cmd(drive, tape->active_data_request, ide_end);
		(void) ide_do_drive_cmd(drive, tape->active_data_request, ide_end);
	}
	}
}
}