Author: kevans
Date: Tue Jan 30 03:31:40 2018
New Revision: 328584
URL: https://svnweb.freebsd.org/changeset/base/328584

Log:
  stand/fdt: Remove unused write-only new_fdtp, correct comment
  
  MFC after:    3 days

Modified:
  head/stand/fdt/fdt_loader_cmd.c

Modified: head/stand/fdt/fdt_loader_cmd.c
==============================================================================
--- head/stand/fdt/fdt_loader_cmd.c     Tue Jan 30 01:13:06 2018        
(r328583)
+++ head/stand/fdt/fdt_loader_cmd.c     Tue Jan 30 03:31:40 2018        
(r328584)
@@ -438,7 +438,6 @@ fdt_apply_overlays()
        size_t max_overlay_size, next_fdtp_size;
        size_t current_fdtp_size;
        void *current_fdtp;
-       void *new_fdtp;
        void *next_fdtp;
        void *overlay;
        int rv;
@@ -446,7 +445,6 @@ fdt_apply_overlays()
        if ((fdtp == NULL) || (fdtp_size == 0))
                return;
 
-       new_fdtp = NULL;
        max_overlay_size = 0;
        for (fp = file_findfile(NULL, "dtbo"); fp != NULL; fp = fp->f_next) {
                if (max_overlay_size < fp->f_size)
@@ -489,7 +487,7 @@ fdt_apply_overlays()
                        printf("failed to open base dtb into overlay base\n");
                        continue;
                }
-               /* Both overlay and new_fdtp may be modified in place */
+               /* Both overlay and next_fdtp may be modified in place */
                rv = fdt_overlay_apply(next_fdtp, overlay);
                if (rv == 0) {
                        /* Rotate next -> current */
_______________________________________________
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