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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to