diff options
author | Toomas Soome <tsoome@me.com> | 2017-11-21 13:01:42 +0200 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-11-27 11:20:45 -0500 |
commit | df9cdf1096bbdb93cb9c2bb9d089a7804dc1d809 (patch) | |
tree | 9d9f06ea6369e1fd99761ebdb28a7879dc419f98 /usr/src/lib/libima/common/sunima-lib.c | |
parent | d87d03b4c0f66bf125e607ef8b0d9c5481040d20 (diff) | |
download | illumos-joyent-df9cdf1096bbdb93cb9c2bb9d089a7804dc1d809.tar.gz |
8845 libima: variable set but not used
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libima/common/sunima-lib.c')
-rw-r--r-- | usr/src/lib/libima/common/sunima-lib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/src/lib/libima/common/sunima-lib.c b/usr/src/lib/libima/common/sunima-lib.c index 6a233eaec1..1f96695085 100644 --- a/usr/src/lib/libima/common/sunima-lib.c +++ b/usr/src/lib/libima/common/sunima-lib.c @@ -125,24 +125,24 @@ IMA_API IMA_STATUS SUN_IMA_GetTunableProperties( return (status); } -static void os_obtainmutex(int semid) { - int retVal; +static void +os_obtainmutex(int semid) +{ struct sembuf sem_b; sem_b.sem_num = 0; sem_b.sem_op = -1; sem_b.sem_flg = SEM_UNDO; - retVal = semop(semid, &sem_b, 1); - + (void) semop(semid, &sem_b, 1); } -static void os_releasemutex(int semid) { - int retVal; +static void +os_releasemutex(int semid) +{ struct sembuf sem_b; sem_b.sem_num = 0; sem_b.sem_op = 1; sem_b.sem_flg = SEM_UNDO; - retVal = semop(semid, &sem_b, 1); - + (void) semop(semid, &sem_b, 1); } |