Commit f8d9626f authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: remove obsolete conditional

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 1b545af6
......@@ -202,21 +202,14 @@ static int fd_timer_period_jiffies; /* converted from ms at init time */
static void fd_tlet(unsigned long arg)
{
struct fd_dev *fd = (void *)arg;
struct zio_channel *chan = NULL;
struct zio_device *zdev = fd->zdev;
struct zio_channel *chan = zdev->cset[0].chan;
struct fmc_device *fmc = fd->fmc;
/* Always read the hardware fifo until empty */
while (!fd_read_hw_fifo(fd))
;
if (zdev) {
chan = zdev->cset[0].chan;
} else {
/* nobody read the device so far: we lack the information */
goto out;
}
/* FIXME: race condition */
if (!test_bit(FD_FLAG_INPUT_READY, &fd->flags))
goto out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment