Staging: comedi: adl_pci9118.c: fix unsigned problem with divisors
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 May 2010 23:08:51 +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/adl_pci9118.c

index dc4bd0423e6ff12a6751e671ace742daa5074ba9..ccef549778e409c7eb3249f1e69cb7b7728c4d58 100644 (file)
@@ -921,7 +921,8 @@ static int pci9118_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;
 
        /* step 1: make sure trigger sources are trivially valid */