aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_markdown.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-04 21:41:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-04 21:41:29 +0000
commit6a9c863d13a717de73b674d348f838664b76bdab (patch)
treefc0dc267c898d5c5cf966fef2c0ed6621ca8ee0f /mdoc_markdown.c
parentaa7b97b7b53276fe80370d81c08c6f20e4103148 (diff)
downloadmandoc-6a9c863d13a717de73b674d348f838664b76bdab.tar.gz
mandoc-6a9c863d13a717de73b674d348f838664b76bdab.tar.zst
mandoc-6a9c863d13a717de73b674d348f838664b76bdab.zip
Remove a redundant condition in .%T handling, no functional change.
Found by jsg@ with scan-build.
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r--mdoc_markdown.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c
index 264babb6..cb1bdfa3 100644
--- a/mdoc_markdown.c
+++ b/mdoc_markdown.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_markdown.c,v 1.1 2017/03/03 14:23:23 schwarze Exp $ */
+/* $Id: mdoc_markdown.c,v 1.2 2017/03/04 21:41:29 schwarze Exp $ */
/*
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -1419,8 +1419,7 @@ md_pre_Xr(struct roff_node *n)
static int
md_pre__T(struct roff_node *n)
{
- if (n->parent != NULL && n->parent->tok == MDOC_Rs &&
- n->parent->norm->Rs.quote_T)
+ if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
md_word("\"");
else
md_rawword("*");
@@ -1432,8 +1431,7 @@ static void
md_post__T(struct roff_node *n)
{
outflags &= ~MD_spc;
- if (n->parent != NULL && n->parent->tok == MDOC_Rs &&
- n->parent->norm->Rs.quote_T)
+ if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
md_word("\"");
else
md_rawword("*");