staging: comedi: fix signess bug
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 12 Sep 2010 18:56:35 +0000 (22:56 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Sep 2010 19:37:34 +0000 (12:37 -0700)
commit2503a26554c7e73c544fc97f47c1d41faa88bd07
tree5859b8aed34415341f9b8e64ceb854bc78f8b447
parentcae16a1742ad3cc19f15e78b821b94448e330ad9
staging: comedi: fix signess bug

ai_count and ao_counter are unsigned, check for < 0 doesn't make sense.
Cast them to int.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/cb_pcidas64.c
drivers/staging/comedi/drivers/usbdux.c