summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-03-03 13:55:06 +0000
committerschwarze <schwarze@openbsd.org>2017-03-03 13:55:06 +0000
commit9b4231130a121866eb670be1e8a971d40ad10f3b (patch)
tree9e8ad6e8801e2ae9951b420d28be3d5654687bd8 /usr.bin/mandoc/mdoc_html.c
parentFix a copy-and-paste error that caused man(7) manuals without (diff)
downloadwireguard-openbsd-9b4231130a121866eb670be1e8a971d40ad10f3b.tar.xz
wireguard-openbsd-9b4231130a121866eb670be1e8a971d40ad10f3b.zip
remove a few redundant conditions that jsg@ found with cppcheck
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index 963fa66e23e..08673ebb35a 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_html.c,v 1.147 2017/02/22 08:52:24 schwarze Exp $ */
+/* $OpenBSD: mdoc_html.c,v 1.148 2017/03/03 13:55:06 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -664,7 +664,7 @@ mdoc_it_pre(MDOC_ARGS)
enum mdoc_list type;
bl = n->parent;
- while (bl != NULL && bl->tok != MDOC_Bl)
+ while (bl->tok != MDOC_Bl)
bl = bl->parent;
type = bl->norm->Bl.type;