Skip to content

Commit

Permalink
OS-5909 lint complains about naked set_errno calls
Browse files Browse the repository at this point in the history
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: Patrick Mooney <patrick.mooney@joyent.com>
  • Loading branch information
jjelinek committed Jan 20, 2017
1 parent 8682a7e commit 855743d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions usr/src/uts/common/brand/lx/syscall/lx_futex.c
Expand Up @@ -585,7 +585,7 @@ futex_wake_op(memid_t *memid, caddr_t addr2, memid_t *memid2,

/* LINTED: alignment */
if ((wake = futex_wake_op_execute((int32_t *)addr2, val3)) < 0) {
set_errno(-wake); /* convert back to positive errno */
(void) set_errno(-wake); /* convert back to positive errno */
ret = -1;
goto out;
}
Expand All @@ -600,7 +600,7 @@ futex_wake_op(memid_t *memid, caddr_t addr2, memid_t *memid2,
* A PI waiter. It is invalid to mix PI and non-PI
* usage on the same futex.
*/
set_errno(EINVAL);
(void) set_errno(EINVAL);
ret = -1;
goto out;
}
Expand All @@ -626,7 +626,7 @@ futex_wake_op(memid_t *memid, caddr_t addr2, memid_t *memid2,
* A PI waiter. It is invalid to mix PI and non-PI
* usage on the same futex.
*/
set_errno(EINVAL);
(void) set_errno(EINVAL);
ret = -1;
goto out;
}
Expand Down Expand Up @@ -1381,7 +1381,7 @@ lx_futex(uintptr_t addr, int op, int val, uintptr_t lx_timeout,
case FUTEX_UNLOCK_PI:
rval = futex_unlock_pi(&memid, (uint32_t *)addr, 0);
if (rval != 0)
set_errno(rval);
(void) set_errno(rval);
break;
}

Expand Down

0 comments on commit 855743d

Please sign in to comment.