Commit ce1d67ac authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: usbdux: checkpatch.pl cleanup (else not useful)

Fix the checkpatch.pl warning:

WARNING: else is not generally useful after a break or return
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0953ee4a
...@@ -1327,13 +1327,13 @@ static int usbdux_pwm_period(struct comedi_device *dev, ...@@ -1327,13 +1327,13 @@ static int usbdux_pwm_period(struct comedi_device *dev,
struct usbdux_private *devpriv = dev->private; struct usbdux_private *devpriv = dev->private;
int fx2delay = 255; int fx2delay = 255;
if (period < MIN_PWM_PERIOD) { if (period < MIN_PWM_PERIOD)
return -EAGAIN; return -EAGAIN;
} else {
fx2delay = (period / (6 * 512 * 1000 / 33)) - 6; fx2delay = (period / (6 * 512 * 1000 / 33)) - 6;
if (fx2delay > 255) if (fx2delay > 255)
return -EAGAIN; return -EAGAIN;
}
devpriv->pwm_delay = fx2delay; devpriv->pwm_delay = fx2delay;
devpriv->pwm_period = period; devpriv->pwm_period = period;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment