]> git.cameronkatri.com Git - mandoc.git/commitdiff
Remove unnecessary conditional...
authorKristaps Dzonsons <kristaps@bsd.lv>
Tue, 25 Jan 2011 17:32:04 +0000 (17:32 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Tue, 25 Jan 2011 17:32:04 +0000 (17:32 +0000)
term_ascii.c
term_ps.c

index b926a5b378aa511b4b995e4a224bbda5aa1dc7ab..374a2a02e0ca0ab16b70c150419db337b9ddd97a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: term_ascii.c,v 1.11 2011/01/02 12:21:07 kristaps Exp $ */
+/*     $Id: term_ascii.c,v 1.12 2011/01/25 17:32:04 kristaps Exp $ */
 /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -48,8 +48,7 @@ ascii_alloc(char *outopts)
        const char      *toks[2];
        char            *v;
 
-       if (NULL == (p = term_alloc(TERMENC_ASCII)))
-               return(NULL);
+       p = term_alloc(TERMENC_ASCII);
 
        p->tabwidth = 5;
        p->defrmargin = 78;
index fa2f68fe26d3dd759da56ff1a6b5a7767136770a..543b111c2ba66017436efca3737656016c615541 100644 (file)
--- a/term_ps.c
+++ b/term_ps.c
@@ -1,4 +1,4 @@
-/*     $Id: term_ps.c,v 1.45 2010/09/27 23:03:44 schwarze Exp $ */
+/*     $Id: term_ps.c,v 1.46 2011/01/25 17:32:04 kristaps Exp $ */
 /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -428,8 +428,7 @@ pspdf_alloc(char *outopts)
        const char      *pp;
        char            *v;
 
-       if (NULL == (p = term_alloc(TERMENC_ASCII)))
-               return(NULL);
+       p = term_alloc(TERMENC_ASCII);
 
        p->advance = ps_advance;
        p->begin = ps_begin;