osc_sm_passive_target.c: ensure ret is always defined
Fixes a compiler warning
Этот коммит содержится в:
родитель
9c6d452d6b
Коммит
40b7643119
@ -3,6 +3,7 @@
|
|||||||
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
|
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
|
||||||
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -160,6 +161,8 @@ ompi_osc_sm_unlock(int target,
|
|||||||
ret = end_exclusive(module, target);
|
ret = end_exclusive(module, target);
|
||||||
} else if (module->outstanding_locks[target] == lock_shared) {
|
} else if (module->outstanding_locks[target] == lock_shared) {
|
||||||
ret = end_shared(module, target);
|
ret = end_shared(module, target);
|
||||||
|
} else {
|
||||||
|
ret = OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
module->outstanding_locks[target] = lock_none;
|
module->outstanding_locks[target] = lock_none;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user