summaryrefslogtreecommitdiff
path: root/drivers/ide
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-02 11:00:26 +0100
committerDavid S. Miller <davem@davemloft.net>2018-08-13 11:48:54 -0700
commit777a82f87a9af591c3b02e9983d6cd3109022ea9 (patch)
tree77448369d9affdf0946f1ac1e1b9d00b056fdde1 /drivers/ide
parentbb1215a2d011db15e9a8d5d2469c0ad9651d7660 (diff)
ide-tape: remove redundant variable buffer_size
Variable buffer_size is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'buffer_size' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-tape.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index aee7b46d2330..34c1165226a4 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -1746,7 +1746,6 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
{
unsigned long t;
int speed;
- int buffer_size;
u16 *ctl = (u16 *)&tape->caps[12];
ide_debug_log(IDE_DBG_FUNC, "minor: %d", minor);
@@ -1781,7 +1780,6 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
*ctl /= 2;
tape->buffer_size = *ctl * tape->blk_size;
}
- buffer_size = tape->buffer_size;
/* select the "best" DSC read/write polling freq */
speed = max(*(u16 *)&tape->caps[14], *(u16 *)&tape->caps[8]);