mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
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:
parent
3f4577bff8
commit
a44522b20d
@ -2825,10 +2825,11 @@ int inline ao_stop_immediately(me6000_ao_subdevice_t * instance)
|
|||||||
int i;
|
int i;
|
||||||
uint32_t single_mask;
|
uint32_t single_mask;
|
||||||
|
|
||||||
single_mask =
|
if (instance->ao_idx < ME6000_AO_SINGLE_STATUS_OFFSET)
|
||||||
(instance->ao_idx - ME6000_AO_SINGLE_STATUS_OFFSET <
|
single_mask = 0x0000;
|
||||||
0) ? 0x0000 : (0x0001 << (instance->ao_idx -
|
else
|
||||||
ME6000_AO_SINGLE_STATUS_OFFSET));
|
single_mask = 0x0001 << (instance->ao_idx -
|
||||||
|
ME6000_AO_SINGLE_STATUS_OFFSET);
|
||||||
|
|
||||||
timeout =
|
timeout =
|
||||||
(instance->hardware_stop_delay >
|
(instance->hardware_stop_delay >
|
||||||
|
Loading…
Reference in New Issue
Block a user