Print this page
10141 smatch fix for zoneadmd

@@ -2272,15 +2272,14 @@
         for (;;)
                 (void) pause();
 
 child_out:
         assert(pid == 0);
-        if (shstate != NULL) {
+
                 shstate->status = -1;
                 (void) sema_post(&shstate->sem);
                 (void) munmap((char *)shstate, shstatelen);
-        }
 
         /*
          * This might trigger an unref notification, but if so,
          * we are still holding the lock, so our call to exit will
          * ultimately win the race and will publish the right exit