From a90a1259342ecea6f70c0fd7f91981ff1fc9516e Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 29 Aug 2018 14:02:00 +0000 Subject: self-review --- usr/src/uts/common/exec/elf/elf_notes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/exec/elf') diff --git a/usr/src/uts/common/exec/elf/elf_notes.c b/usr/src/uts/common/exec/elf/elf_notes.c index 34456ccc1e..53a405b42d 100644 --- a/usr/src/uts/common/exec/elf/elf_notes.c +++ b/usr/src/uts/common/exec/elf/elf_notes.c @@ -526,8 +526,8 @@ write_elfnotes(proc_t *p, int sig, vnode_t *vp, offset_t offset, if (error) goto done; - if (elfnote(vp, &offset, NT_LWPNAME, sizeof (name), - (caddr_t)&name, rlimit, credp) != 0) + if ((error = elfnote(vp, &offset, NT_LWPNAME, sizeof (name), + (caddr_t)&name, rlimit, credp)) != 0) goto done; -- cgit v1.2.3