From: Greg Kroah-Hartman Date: Tue, 4 May 2010 23:08:24 +0000 (-0700) Subject: Staging: comedi: adv_pci1710.c: fix unsigned problem with divisors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8cb9ad9ad872dc600314c1c8d07c420b3cdefbb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: comedi: adv_pci1710.c: fix unsigned problem with divisors Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/drivers/staging/comedi/drivers/adv_pci1710.c index 5c1ff779af2c..67c4f11a36ab 100644 --- a/drivers/staging/comedi/drivers/adv_pci1710.c +++ b/drivers/staging/comedi/drivers/adv_pci1710.c @@ -937,7 +937,8 @@ static int pci171x_ai_cmdtest(struct comedi_device *dev, struct comedi_cmd *cmd) { int err = 0; - int tmp, divisor1 = 0, divisor2 = 0; + int tmp; + unsigned int divisor1 = 0, divisor2 = 0; DPRINTK("adv_pci1710 EDBG: BGN: pci171x_ai_cmdtest(...)\n"); #ifdef PCI171X_EXTDEBUG