Staging: comedi: adv_pci1710.c: fix unsigned problem with divisors
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 May 2010 23:08:24 +0000 (16:08 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:08 +0000 (11:36 -0700)
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/adv_pci1710.c

index 5c1ff779af2c89a9a72fe967725b1e818dcf60f7..67c4f11a36ab261eb045b26925e1fe131f0dbb64 100644 (file)
@@ -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