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

staging: comedi: Remove if condition.

This patch removes a if condition which has a semicolon
after it. As the conditional check is redundant, the comment
before it is also changed. The following
coccinelle script was used to detect the pattern of a
semicolon after if.

@r1@
position p;
@@
if (...);@p
@script:python@
p0 << r1.p;
@@
// Emacs org-mode output
cocci.print_main("", p0)
cocci.print_secs("", p0)

Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Navya Sri Nizamkari and committed by
Greg Kroah-Hartman
82d28561 324588ec

+1 -3
+1 -3
drivers/staging/comedi/drivers/das1800.c
··· 489 489 490 490 while (inb(dev->iobase + DAS1800_STATUS) & FNE) { 491 491 dpnt = inw(dev->iobase + DAS1800_FIFO); 492 - /* convert to unsigned type if we are in a bipolar mode */ 493 - if (!unipolar) 494 - ; 492 + /* convert to unsigned type */ 495 493 dpnt = munge_bipolar_sample(dev, dpnt); 496 494 comedi_buf_write_samples(s, &dpnt, 1); 497 495