Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: remove redundant condition in upda...



details:   https://anonhg.NetBSD.org/src/rev/eea50c0dd4f5
branches:  trunk
changeset: 1020519:eea50c0dd4f5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Apr 14 18:38:06 2021 +0000

description:
lint: remove redundant condition in update_location

diffstat:

 usr.bin/xlint/lint1/err.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2f70acf32ef5 -r eea50c0dd4f5 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Wed Apr 14 18:35:40 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Wed Apr 14 18:38:06 2021 +0000
@@ -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 @@
                top->by = includes;
                includes = top;
        } else {
-               if (is_end && top != NULL) {
+               if (is_end) {
                        includes = top->by;
                        free(top);
                        top = includes;



Home | Main Index | Thread Index | Old Index