Commit 04264ec2 authored by Federico Vaga's avatar Federico Vaga

kernel: no need to check for active_block

The driver is not using the active_block but it fills data
in the current_control. So, even if there is an allocation failure
inside ZIO, this doesn't brake the driver.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 138e6c54
......@@ -62,9 +62,6 @@ int ft_read_sw_fifo(struct fmctdc_dev *ft, int channel,
st = &ft->channels[channel - 1];
if (!chan->active_block)
return -EAGAIN;
ret = kfifo_out_spinlocked(&st->fifo, &ts,
sizeof(struct ft_wr_timestamp), &ft->lock);
if (!ret) {
......
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