From 5ac301306651352959dfd895dbe104d697113afb Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Wed, 8 Dec 2004 20:23:07 +0000 Subject: minor simplification in if () statement from Joris Vink --- usr.bin/cvs/add.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/cvs/add.c') diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index c1dc703d9f8..19f661e0070 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.8 2004/12/07 17:10:56 tedu Exp $ */ +/* $OpenBSD: add.c,v 1.9 2004/12/08 20:23:06 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -103,8 +103,7 @@ cvs_add_file(CVSFILE *cf, void *arg) struct cvsroot *root; if (cf->cf_type == DT_DIR) { - if (cf->cf_cvstat == CVS_FST_UNKNOWN) { - } else { + if (cf->cf_cvstat != CVS_FST_UNKNOWN) { root = cf->cf_ddat->cd_root; if ((cf->cf_parent == NULL) || (root != cf->cf_parent->cf_ddat->cd_root)) { -- cgit v1.2.3