Skip to content

Commit

Permalink
block/floppy: remove redundant variable dflags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Jens Axboe committed Jul 9, 2018
1 parent 43ada78 commit b64a71a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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();

Expand Down

0 comments on commit b64a71a

Please sign in to comment.