]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging/comedi: Remove if(); statement without effect
authorPeter Huewe <peterhuewe@gmx.de>
Fri, 15 Feb 2013 12:14:26 +0000 (13:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:20:14 +0000 (10:20 -0800)
Smatch warns about:
staging/comedi/drivers/cb_pcidas64.c:3304 prep_ao_dma() warn: if();

So the check currently does nothing and can be removed, as indicated by
Ian.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c

index d33fc327236f76e19e6ddb831987cf7d620a2b7a..9f3112cb7a21108ad6c18ca2babd0045b491ecb3 100644 (file)
@@ -3301,7 +3301,6 @@ static int prep_ao_dma(struct comedi_device *dev, const struct comedi_cmd *cmd)
        num_bytes = load_ao_dma_buffer(dev, cmd);
        if (num_bytes == 0)
                return -1;
-       if (num_bytes >= DMA_BUFFER_SIZE) ;
        load_ao_dma(dev, cmd);
 
        dma_start_sync(dev, 0);