mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
bf7c7a0401
commit
6dc8746d71
1 changed files with 0 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue