mdb_v8: remove useless check
authorDave Pacheco <dap@joyent.com>
Mon, 7 Oct 2013 21:20:00 +0000 (14:20 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 8 Oct 2013 20:49:22 +0000 (13:49 -0700)
deps/mdb_v8/mdb_v8.c

index 998028d..a2f5795 100644 (file)
@@ -1402,8 +1402,6 @@ jsstr_print_seq(uintptr_t addr, uint_t flags, char **bufp, size_t *lenp,
 
        if (slicelen != -1)
                nstrchrs = slicelen;
-       if (nstrchrs < 0)
-               nstrchrs = 0;
 
        if ((flags & JSSTR_ISASCII) != 0) {
                nstrbytes = nstrchrs;