Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2017 17:35:13 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314562 - head/sys/kern
Message-ID:  <201703021735.v22HZDNg099987@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Mar  2 17:35:13 2017
New Revision: 314562
URL: https://svnweb.freebsd.org/changeset/base/314562

Log:
  Style.
  
  Reviewed by:	alc
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c	Thu Mar  2 17:31:59 2017	(r314561)
+++ head/sys/kern/imgact_elf.c	Thu Mar  2 17:35:13 2017	(r314562)
@@ -413,9 +413,8 @@ __elfN(map_partial)(vm_map_t map, vm_obj
 		error = copyout((caddr_t)sf_buf_kva(sf) + off, (caddr_t)start,
 		    end - start);
 		vm_imgact_unmap_page(sf);
-		if (error) {
+		if (error != 0)
 			return (KERN_FAILURE);
-		}
 	}
 
 	return (KERN_SUCCESS);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703021735.v22HZDNg099987>