Skip to content

Commit

Permalink
Fix redundant test in calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Oct 15, 2024
1 parent 6843d17 commit aaacdb8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions elks/arch/i86/drivers/block/directfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,8 @@ static void DFPROC setup_rw_floppy(void)
{
DEBUG("setup_rw-");
#if IODELAY
int num_sectors = read_track?
floppy->sect + (read_track && (floppy->sect & 1) && !head)
: CURRENT->rq_nr_sectors;
int num_sectors = read_track? floppy->sect + (floppy->sect & 1 && !head);
: CURRENT->rq_nr_sectors;
DEBUG("[%ur%u]", current_drive, num_sectors);
static unsigned lasttrack;
unsigned ms = abs(track - lasttrack) * 4 / 10;
Expand Down

0 comments on commit aaacdb8

Please sign in to comment.