Skip to content

Commit

Permalink
fdc: remove double affectation of FD_MSR_CMDBUSY flag
Browse files Browse the repository at this point in the history
FD_MSR_CMDBUSY flag is already set in fdctrl_write_data(), just
before calling the command handler (fdctrl_start_transfer() here).

Signed-off-by: Hervé Poussineau <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
  • Loading branch information
hpoussin authored and kevmw committed Nov 14, 2012
1 parent 6f442fe commit 27c86e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/fdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction)
/* Set the FIFO state */
fdctrl->data_dir = direction;
fdctrl->data_pos = 0;
fdctrl->msr |= FD_MSR_CMDBUSY;
assert(fdctrl->msr & FD_MSR_CMDBUSY);
if (fdctrl->fifo[0] & 0x80)
fdctrl->data_state |= FD_STATE_MULTI;
else
Expand Down

0 comments on commit 27c86e2

Please sign in to comment.