Commit eef77801 authored by Ondrej Zary's avatar Ondrej Zary Committed by James Bottomley
Browse files

aha1542: remove loop from aha1542_outb



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

Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 7061dec4
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -91,15 +91,12 @@ static inline bool wait_mask(u16 port, u8 mask, u8 allof, u8 noneof, int timeout

static int aha1542_outb(unsigned int base, u8 val)
{
	while (1) {
	if (!wait_mask(STATUS(base), CDF, 0, CDF, 0))
		return 1;
		if (inb(STATUS(base)) & CDF)
			continue;
	outb(val, DATA(base));

	return 0;
}
}

static int aha1542_out(unsigned int base, u8 *buf, int len)
{