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

Commit 45908795 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

floppy: switch from req->errors to req->error_count



Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent e26738e0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2805,9 +2805,11 @@ static int set_next_request(void)
			fdc_queue = 0;
		if (q) {
			current_req = blk_fetch_request(q);
			if (current_req)
			if (current_req) {
				current_req->error_count = 0;
				break;
			}
		}
	} while (fdc_queue != old_pos);

	return current_req != NULL;
@@ -2866,7 +2868,7 @@ static void redo_fd_request(void)
		_floppy = floppy_type + DP->autodetect[DRS->probed_format];
	} else
		probing = 0;
	errors = &(current_req->errors);
	errors = &(current_req->error_count);
	tmp = make_raw_rw_request();
	if (tmp < 2) {
		request_done(tmp);