Commit f7f92deb authored by Federico Vaga's avatar Federico Vaga

sw:drv: remove useless code

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 59adb80d
......@@ -26,8 +26,8 @@ class TestDma(object):
def test_dma_no_buffer(self, spec):
"""
The DMA engine should not return an error on a 0 length DMA
transfer. Instead, it returns 0 byte transfered.
The read/write will return immediatelly if asked to perform
0-length transfer.
"""
spec.dma_start()
data = spec.dma_read(0, 0)
......
......@@ -230,9 +230,6 @@ static ssize_t spec_fpga_dbg_dma_read(struct file *file, char __user *buf,
struct spec_fpga_dbg_dma *dbgdma = file->private_data;
int err;
if (count == 0)
return 0;
if (*ppos >= SPEC_DDR_SIZE)
return -EINVAL;
......@@ -261,9 +258,6 @@ static ssize_t spec_fpga_dbg_dma_write(struct file *file,
struct spec_fpga_dbg_dma *dbgdma = file->private_data;
int err;
if (count == 0)
return 0;
if (*ppos >= SPEC_DDR_SIZE)
return -EINVAL;
......
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