summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-02-18 08:42:32 +0000
committerJens Axboe <axboe@kernel.dk>2019-02-28 14:05:58 -0700
commit6dc8746d7124c14bd86679ead7e64614263212c9 (patch)
treecee77331630f48feaa8aa0d79ea9a65aff4cbfc6 /drivers/block
parentbf7c7a04014678c6880642936e3d420cdfe453bc (diff)
downloadlinux-6dc8746d7124c14bd86679ead7e64614263212c9.tar.bz2
floppy: remove set but not used variable 'q'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/block/floppy.c: In function 'request_done': drivers/block/floppy.c:2233:24: warning: variable 'q' set but not used [-Wunused-but-set-variable] It's never used and can be removed. Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/floppy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 6f2856c6d0f2..04d47683eddd 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 */