From 6a1b3c3645bb800749f068acb8453f1b6c257b83 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 19 Mar 2006 00:29:27 +0000 Subject: Coverity CID 695: Remove impossible condition. This changes the scoring as it was probably intended originally. --- mille/comp.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mille/comp.c') diff --git a/mille/comp.c b/mille/comp.c index 3b1bc300..ef42f102 100644 --- a/mille/comp.c +++ b/mille/comp.c @@ -1,4 +1,4 @@ -/* $NetBSD: comp.c,v 1.9 2003/08/07 09:37:24 agc Exp $ */ +/* $NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos Exp $ */ /* * Copyright (c) 1982, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)comp.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: comp.c,v 1.9 2003/08/07 09:37:24 agc Exp $"); +__RCSID("$NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos Exp $"); #endif #endif /* not lint */ @@ -342,9 +342,7 @@ normbad: *value /= ++badcount; if (op->mileage == 0) *value += 5; - if ((card == C_LIMIT && - op->speed == C_LIMIT) || - !op->can_go) + if (op->speed == C_LIMIT || !op->can_go) *value -= 5; if (cango && pp->safety[S_RIGHT_WAY] != S_UNKNOWN) -- cgit v1.2.3-56-ge451