Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

@@ -26,11 +26,11 @@
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
- * Copyright (c) 2013, Joyent, Inc. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
  */
 
 /*
  * Map file parsing (Shared Support Code).
  */

@@ -82,12 +82,10 @@
                 if (strcasecmp(name, arr_name) == 0)
                         return (array);
         }
 
         /*NOTREACHED*/
-        assert(0);
-        return (NULL);
 }
 #endif
 
 /*
  * Given the same NULL terminated array accepted by ld_map_kwfind(), format