diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 6f2856c6d0f2063d7a8cf70efd9921911a0cf1b0..04d47683eddd63cbecdff1a19ea2902f1ab2c751 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -2230,7 +2230,6 @@ static void floppy_end_request(struct request *req, blk_status_t error) static void request_done(int uptodate) { struct request *req = current_req; - struct request_queue *q; int block; char msg[sizeof("request done ") + sizeof(int) * 3]; @@ -2243,8 +2242,6 @@ static void request_done(int uptodate) return; } - q = req->q; - if (uptodate) { /* maintain values for invalidation on geometry * change */