Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187126
b: refs/heads/master
c: 2300f90
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Mar 12, 2010
1 parent fcd0de3 commit 468377b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7b2b2ecd88d06ae212d069a4e187ab690b1636f
refs/heads/master: 2300f90e31178f44b0e903c12ea311df1297d7fa
12 changes: 8 additions & 4 deletions trunk/drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,8 +1198,6 @@ static int output_byte(char byte)
return -1;
}

#define LAST_OUT(x) if (output_byte(x)<0){ reset_fdc();return;}

/* gets the response from the fdc */
static int result(void)
{
Expand Down Expand Up @@ -1679,7 +1677,10 @@ static void seek_floppy(void)
do_floppy = seek_interrupt;
output_byte(FD_SEEK);
output_byte(UNIT(current_drive));
LAST_OUT(track);
if (output_byte(track) < 0) {
reset_fdc();
return;
}
debugt("seek command:");
}

Expand Down Expand Up @@ -1809,7 +1810,10 @@ static void recalibrate_floppy(void)
debugt("recalibrate floppy:");
do_floppy = recal_interrupt;
output_byte(FD_RECALIBRATE);
LAST_OUT(UNIT(current_drive));
if (output_byte(UNIT(current_drive)) < 0) {
reset_fdc();
return;
}
}

/*
Expand Down

0 comments on commit 468377b

Please sign in to comment.