Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>

@@ -22,10 +22,14 @@
 /*
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
 #include <sys/types.h>
 #include <sys/sysmacros.h>
 #include <sys/dditypes.h>
 #include <sys/ddi_impldefs.h>
 #include <sys/ddipropdefs.h>

@@ -375,12 +379,13 @@
         if (!(flags & DCMD_ADDRSPEC)) {
                 if (mdb_walk_dcmd("ldi_handle", "ldi_handle",
                     argc, argv) == -1) {
                         mdb_warn("can't walk ldi handles");
                         return (DCMD_ERR);
-                } return (DCMD_OK);
         }
+                return (DCMD_OK);
+        }
 
         /* display the header line */
         if (DCMD_HDRSPEC(flags))
                 ldi_handle_header(refs, ident);