From: Colin Ian King Date: Thu, 15 Apr 2021 13:00:20 +0000 (+0100) Subject: floppy: remove redundant assignment to variable st X-Git-Tag: accepted/tizen/unified/20230118.172025~7357^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b53002e03559e97fdfb18d1c2b36c218d7bb742f;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Denis Efremov Acked-by: Willy Tarreau Link: https://lore.kernel.org/r/20210415130020.1959951-1-colin.king@canonical.com Signed-off-by: Jens Axboe --- diff --git a/arch/x86/include/asm/floppy.h b/arch/x86/include/asm/floppy.h index d43717b..6ec3fc9 100644 --- a/arch/x86/include/asm/floppy.h +++ b/arch/x86/include/asm/floppy.h @@ -74,7 +74,6 @@ static irqreturn_t floppy_hardint(int irq, void *dev_id) int lcount; char *lptr; - st = 1; for (lcount = virtual_dma_count, lptr = virtual_dma_addr; lcount; lcount--, lptr++) { st = inb(virtual_dma_port + FD_STATUS);