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

aha1542: remove loop from aha1542_outb

The loop in aha1542_outb with double-check is no longer needed, remove it.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>

authored by

Ondrej Zary and committed by
James Bottomley
eef77801 7061dec4

+5 -8
+5 -8
drivers/scsi/aha1542.c
··· 91 91 92 92 static int aha1542_outb(unsigned int base, u8 val) 93 93 { 94 - while (1) { 95 - if (!wait_mask(STATUS(base), CDF, 0, CDF, 0)) 96 - return 1; 97 - if (inb(STATUS(base)) & CDF) 98 - continue; 99 - outb(val, DATA(base)); 100 - return 0; 101 - } 94 + if (!wait_mask(STATUS(base), CDF, 0, CDF, 0)) 95 + return 1; 96 + outb(val, DATA(base)); 97 + 98 + return 0; 102 99 } 103 100 104 101 static int aha1542_out(unsigned int base, u8 *buf, int len)