Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

floppy: remove redundant assignment to variable st

The variable st is being assigned a value that is never read and
it is being updated later with a new value. The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Denis Efremov <efremov@linux.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20210415130020.1959951-1-colin.king@canonical.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Colin Ian King and committed by
Jens Axboe
b53002e0 a720e11f

-1
-1
arch/x86/include/asm/floppy.h
··· 74 74 int lcount; 75 75 char *lptr; 76 76 77 - st = 1; 78 77 for (lcount = virtual_dma_count, lptr = virtual_dma_addr; 79 78 lcount; lcount--, lptr++) { 80 79 st = inb(virtual_dma_port + FD_STATUS);