From: Greg Kroah-Hartman Date: Tue, 4 May 2010 23:08:51 +0000 (-0700) Subject: Staging: comedi: adl_pci9118.c: fix unsigned problem with divisors X-Git-Tag: MMI-PSA29.97-13-9~23841^2^2~217 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f35f3f19fd12226482f8b57c70d9a0f82470c87;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: comedi: adl_pci9118.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/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c index dc4bd0423e6f..ccef549778e4 100644 --- a/drivers/staging/comedi/drivers/adl_pci9118.c +++ b/drivers/staging/comedi/drivers/adl_pci9118.c @@ -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 */