diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/support/lock_ext.c')
-rw-r--r-- | src/third_party/wiredtiger/src/support/lock_ext.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/src/support/lock_ext.c b/src/third_party/wiredtiger/src/support/lock_ext.c index 38d338892c1..e9d99aefe13 100644 --- a/src/third_party/wiredtiger/src/support/lock_ext.c +++ b/src/third_party/wiredtiger/src/support/lock_ext.c @@ -22,10 +22,10 @@ __wt_ext_spin_init(WT_EXTENSION_API *wt_api, WT_EXTENSION_SPINLOCK *ext_spinlock ext_spinlock->spinlock = NULL; default_session = ((WT_CONNECTION_IMPL *)wt_api->conn)->default_session; if ((ret = __wt_calloc_one(default_session, &lock)) != 0) - return ret; + return (ret); if ((ret = __wt_spin_init(default_session, lock, name)) != 0) { __wt_free(default_session, lock); - return ret; + return (ret); } ext_spinlock->spinlock = lock; return (0); @@ -44,7 +44,6 @@ __wt_ext_spin_lock( WT_UNUSED(wt_api); /* Unused parameters */ lock = ((WT_SPINLOCK *)ext_spinlock->spinlock); __wt_spin_lock((WT_SESSION_IMPL *)session, lock); - return; } /* @@ -60,7 +59,6 @@ __wt_ext_spin_unlock( WT_UNUSED(wt_api); /* Unused parameters */ lock = ((WT_SPINLOCK *)ext_spinlock->spinlock); __wt_spin_unlock((WT_SESSION_IMPL *)session, lock); - return; } /* @@ -80,5 +78,4 @@ __wt_ext_spin_destroy(WT_EXTENSION_API *wt_api, WT_EXTENSION_SPINLOCK *ext_spinl __wt_spin_destroy(default_session, lock); __wt_free(default_session, lock); ext_spinlock->spinlock = NULL; - return; } |