Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2017 23:59:04 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314717 - head/sys/kern
Message-ID:  <201703052359.v25Nx41P036665@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Mar  5 23:59:04 2017
New Revision: 314717
URL: https://svnweb.freebsd.org/changeset/base/314717

Log:
  Style and punctuation fixes.
  
  Reviewed by:	kib
  MFC after:	3 days

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c	Sun Mar  5 23:48:24 2017	(r314716)
+++ head/sys/kern/imgact_elf.c	Sun Mar  5 23:59:04 2017	(r314717)
@@ -405,7 +405,7 @@ __elfN(map_partial)(vm_map_t map, vm_obj
 	/*
 	 * Find the page from the underlying object.
 	 */
-	if (object) {
+	if (object != NULL) {
 		sf = vm_imgact_map_page(object, offset);
 		if (sf == NULL)
 			return (KERN_FAILURE);
@@ -433,7 +433,7 @@ __elfN(map_insert)(struct image_params *
 	if (start != trunc_page(start)) {
 		rv = __elfN(map_partial)(map, object, offset, start,
 		    round_page(start), prot);
-		if (rv)
+		if (rv != KERN_SUCCESS)
 			return (rv);
 		offset += round_page(start) - start;
 		start = round_page(start);
@@ -441,7 +441,7 @@ __elfN(map_insert)(struct image_params *
 	if (end != round_page(end)) {
 		rv = __elfN(map_partial)(map, object, offset +
 		    trunc_page(end) - start, trunc_page(end), end, prot);
-		if (rv)
+		if (rv != KERN_SUCCESS)
 			return (rv);
 		end = trunc_page(end);
 	}
@@ -531,7 +531,7 @@ __elfN(load_section)(struct image_params
 	 * We have two choices.  We can either clear the data in the last page
 	 * of an oversized mapping, or we can start the anon mapping a page
 	 * early and copy the initialized data into that first page.  We
-	 * choose the second..
+	 * choose the second.
 	 */
 	if (memsz > filsz)
 		map_len = trunc_page_ps(offset + filsz, pagesize) - file_addr;



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