1
1

osc_sm_passive_target.c: ensure ret is always defined

Fixes a compiler warning
Этот коммит содержится в:
Jeff Squyres 2015-04-13 11:31:43 -04:00
родитель 9c6d452d6b
Коммит 40b7643119

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

@ -3,6 +3,7 @@
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -160,6 +161,8 @@ ompi_osc_sm_unlock(int target,
ret = end_exclusive(module, target);
} else if (module->outstanding_locks[target] == lock_shared) {
ret = end_shared(module, target);
} else {
ret = OMPI_SUCCESS;
}
module->outstanding_locks[target] = lock_none;