summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-02 08:42:34 +0100
committerJens Axboe <axboe@kernel.dk>2018-07-09 09:07:52 -0600
commitb64a71a0130dd2a88b0fc36a3c0a4882f47813e8 (patch)
treeb637bc870e25cb6bb3bf57b6d86322b49085932e
parent43ada78781246cb36036f26158a645c17550ac54 (diff)
downloadlinux-b64a71a0130dd2a88b0fc36a3c0a4882f47813e8.tar.gz
linux-b64a71a0130dd2a88b0fc36a3c0a4882f47813e8.tar.bz2
linux-b64a71a0130dd2a88b0fc36a3c0a4882f47813e8.zip
block/floppy: remove redundant variable dflags
Variable dflags is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'dflags' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-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 8871b5044d9e..48f622728ce6 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -1461,7 +1461,6 @@ static void setup_rw_floppy(void)
int i;
int r;
int flags;
- int dflags;
unsigned long ready_date;
void (*function)(void);
@@ -1485,8 +1484,6 @@ static void setup_rw_floppy(void)
if (fd_wait_for_completion(ready_date, function))
return;
}
- dflags = DRS->flags;
-
if ((flags & FD_RAW_READ) || (flags & FD_RAW_WRITE))
setup_DMA();