Print this page
6139 help gcc figure out variable initialization

@@ -25,12 +25,10 @@
  *
  * Device policy specific subroutines.  We cannot merge them with
  * drvsubr.c because of static linking requirements.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <ctype.h>

@@ -335,15 +333,13 @@
                 if (tail == NULL)
                         tail = tok + strlen(tok);
                 tc = *tail;
                 *tail = '\0';
 
-                if (delall || delrange) {
                         min = strchr(tok, ':');
-                        if (min)
+                if (min && (delall || delrange))
                                 *min++ = '\0';
-                }
 
                 len = strlen(tok);
                 if (delrange) {
                         minor_t lo, hi;
                         char type;