Skip to content

Commit 4590879

Browse files
Christoph Hellwigaxboe
authored andcommitted
floppy: switch from req->errors to req->error_count
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent e26738e commit 4590879

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/block/floppy.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2805,8 +2805,10 @@ static int set_next_request(void)
28052805
fdc_queue = 0;
28062806
if (q) {
28072807
current_req = blk_fetch_request(q);
2808-
if (current_req)
2808+
if (current_req) {
2809+
current_req->error_count = 0;
28092810
break;
2811+
}
28102812
}
28112813
} while (fdc_queue != old_pos);
28122814

@@ -2866,7 +2868,7 @@ static void redo_fd_request(void)
28662868
_floppy = floppy_type + DP->autodetect[DRS->probed_format];
28672869
} else
28682870
probing = 0;
2869-
errors = &(current_req->errors);
2871+
errors = &(current_req->error_count);
28702872
tmp = make_raw_rw_request();
28712873
if (tmp < 2) {
28722874
request_done(tmp);

0 commit comments

Comments
 (0)