Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd5afa44 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: dt2801: remove disabled code in dt2801_writedata



The code that checks the DT_S_READY status is disabled. Just remove it.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 45d35103
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -289,13 +289,6 @@ static int dt2801_writedata(struct comedi_device *dev, unsigned int data)
			outb_p(data & 0xff, dev->iobase + DT2801_DATA);
			outb_p(data & 0xff, dev->iobase + DT2801_DATA);
			return 0;
			return 0;
		}
		}
#if 0
		if (stat & DT_S_READY) {
			printk
			    ("dt2801: ready flag set (bad!) in dt2801_writedata()\n");
			return -EIO;
		}
#endif
	} while (--timeout > 0);
	} while (--timeout > 0);


	return -ETIME;
	return -ETIME;