staging: comedi: usbdux: remove redundant initialization of fx2delay
authorColin Ian King <colin.king@canonical.com>
Mon, 17 Jun 2019 13:03:58 +0000 (14:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 06:59:40 +0000 (08:59 +0200)
Variable fx2delay is being initialized to a value that is never read
and is being re-assigned a few statements later. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c

index b8f54b7..0350f30 100644 (file)
@@ -1226,7 +1226,7 @@ static int usbdux_pwm_period(struct comedi_device *dev,
                             unsigned int period)
 {
        struct usbdux_private *devpriv = dev->private;
-       int fx2delay = 255;
+       int fx2delay;
 
        if (period < MIN_PWM_PERIOD)
                return -EAGAIN;