From 1dc235cd399a5d00189cc1d4d220cd4717473299 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 23 May 2006 01:29:31 +0000 Subject: [PATCH] Coverity CID 2448: Remove extra NULL check. --- usr.sbin/bootp/common/readfile.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.sbin/bootp/common/readfile.c b/usr.sbin/bootp/common/readfile.c index 66f0d5b577a8..643562fda72b 100644 --- a/usr.sbin/bootp/common/readfile.c +++ b/usr.sbin/bootp/common/readfile.c @@ -22,7 +22,7 @@ SOFTWARE. #include #ifndef lint -__RCSID("$NetBSD: readfile.c,v 1.13 2004/10/29 20:33:06 dsl Exp $"); +__RCSID("$NetBSD: readfile.c,v 1.14 2006/05/23 01:29:31 christos Exp $"); #endif @@ -1276,9 +1276,7 @@ process_generic(char **src, struct shared_bindata **dest, u_int tagvalue) bcopy(tmpbuf, bdata->data + oldlength, newlength + 2); bdata->length = oldlength + newlength + 2; bdata->linkcount = 1; - if (*dest) { - del_bindata(*dest); - } + del_bindata(*dest); *dest = bdata; return 0; }