block/floppy: remove redundant variable dflags
authorColin Ian King <colin.king@canonical.com>
Mon, 2 Jul 2018 07:42:34 +0000 (08:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:52 +0000 (09:07 -0600)
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>
drivers/block/floppy.c

index 8871b5044d9e4b0de6b8eb85ce6c7aaf33a3a4b6..48f622728ce6a1a6006109b711b6d9077ce56cdf 100644 (file)
@@ -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();