From 40b7643119f2fbb9c08e9987e93d543e247cede4 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 13 Apr 2015 11:31:43 -0400 Subject: [PATCH] osc_sm_passive_target.c: ensure ret is always defined Fixes a compiler warning --- ompi/mca/osc/sm/osc_sm_passive_target.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/osc/sm/osc_sm_passive_target.c b/ompi/mca/osc/sm/osc_sm_passive_target.c index c54be0b496..b2398ed32e 100644 --- a/ompi/mca/osc/sm/osc_sm_passive_target.c +++ b/ompi/mca/osc/sm/osc_sm_passive_target.c @@ -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;