Staging: meilhaus: unsigned won't get negative after subtraction

Since unsigned, it won't get negative after subtraction.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Roel Kluin 2009-01-18 15:34:55 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 3f4577bff8
Коммит a44522b20d
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -2825,10 +2825,11 @@ int inline ao_stop_immediately(me6000_ao_subdevice_t * instance)
int i;
uint32_t single_mask;
single_mask =
(instance->ao_idx - ME6000_AO_SINGLE_STATUS_OFFSET <
0) ? 0x0000 : (0x0001 << (instance->ao_idx -
ME6000_AO_SINGLE_STATUS_OFFSET));
if (instance->ao_idx < ME6000_AO_SINGLE_STATUS_OFFSET)
single_mask = 0x0000;
else
single_mask = 0x0001 << (instance->ao_idx -
ME6000_AO_SINGLE_STATUS_OFFSET);
timeout =
(instance->hardware_stop_delay >