Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging/comedi: Remove if(); statement without effect

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>

authored by

Peter Huewe and committed by
Greg Kroah-Hartman
a81875dd 8289ad05

-1
-1
drivers/staging/comedi/drivers/cb_pcidas64.c
··· 3301 3301 num_bytes = load_ao_dma_buffer(dev, cmd); 3302 3302 if (num_bytes == 0) 3303 3303 return -1; 3304 - if (num_bytes >= DMA_BUFFER_SIZE) ; 3305 3304 load_ao_dma(dev, cmd); 3306 3305 3307 3306 dma_start_sync(dev, 0);