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>
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;
- }
+ if (!wait_mask(STATUS(base), CDF, 0, CDF, 0))
+ return 1;
+ outb(val, DATA(base));
+
+ return 0;
}
static int aha1542_out(unsigned int base, u8 *buf, int len)