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