Merge tag 'for-5.1/block-20190302' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / drivers / block / floppy.c
index 55481b4..95f608d 100644 (file)
@@ -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 */