PVS 583: removed unnecessary ternary operator

Change-Id: I8f2b93863e6379e998b974c86980b712a8c1b12e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2022
Reviewed-by: François Revol <revol@free.fr>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Panagiotis Vasilopoulos 2019-12-15 09:32:39 +02:00 committed by Adrien Destugues
parent 6302cfeda2
commit 1ae464b9cf

View File

@ -358,7 +358,7 @@ my_transfer_data(my_device *device, bool directionIn, void *data,
}
do {
bigtime_t timeout = directionIn ? 500000 : 500000;
bigtime_t timeout = 500000;
result = acquire_sem_etc(device->notify, 1, B_RELATIVE_TIMEOUT,
timeout);
if (result == B_TIMED_OUT) {