Module Name: src
Committed By: rillig
Date: Wed Apr 14 18:38:06 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: err.c
Log Message:
lint: remove redundant condition in update_location
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/usr.bin/xlint/lint1/err.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.108 src/usr.bin/xlint/lint1/err.c:1.109
--- src/usr.bin/xlint/lint1/err.c:1.108 Wed Apr 14 18:35:40 2021
+++ src/usr.bin/xlint/lint1/err.c Wed Apr 14 18:38:06 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.108 2021/04/14 18:35:40 rillig Exp $ */
+/* $NetBSD: err.c,v 1.109 2021/04/14 18:38:06 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.108 2021/04/14 18:35:40 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.109 2021/04/14 18:38:06 rillig Exp $");
#endif
#include <sys/types.h>
@@ -423,7 +423,7 @@ update_location(const char *filename, in
top->by = includes;
includes = top;
} else {
- if (is_end && top != NULL) {
+ if (is_end) {
includes = top->by;
free(top);
top = includes;