Commit 7c231431 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

staging: comedi: usbdux: remove redundant initialization of fx2delay



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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76bc27a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;