mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
staging: comedi: usbduxsigma: remove redundant assignment to variable fx2delay
Variable fx2delay is being initialized with a value that is never read
and fx2delay is being re-assigned a little later on. The assignment is
redundant and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190815105314.5756-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7d5e9e350e
commit
d247ceda6a
1 changed files with 1 additions and 1 deletions
|
|
@ -1074,7 +1074,7 @@ static int usbduxsigma_pwm_period(struct comedi_device *dev,
|
|||
unsigned int period)
|
||||
{
|
||||
struct usbduxsigma_private *devpriv = dev->private;
|
||||
int fx2delay = 255;
|
||||
int fx2delay;
|
||||
|
||||
if (period < MIN_PWM_PERIOD)
|
||||
return -EAGAIN;
|
||||
|
|
|
|||
Loading…
Reference in a new issue