From: David Brownell Date: Sun, 4 Apr 2010 08:28:50 +0000 (-0700) Subject: Restore deleted '!' character X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=2a17fd9f9b51516a830ba4b3ae2f2284929ff266;p=fw%2Fopenocd Restore deleted '!' character I'm not sure what caused this significant character to get deleted. it may be related to intermittent Editor or terminal flakes I've been seeing lately (sigh). This fix is trivial. Signed-off-by: David Brownell --- diff --git a/src/target/target.c b/src/target/target.c index 286933f45..f3d63fccc 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -658,7 +658,7 @@ int target_run_algorithm(struct target *target, LOG_ERROR("Target not examined yet"); goto done; } - if (target->type->run_algorithm) { + if (!target->type->run_algorithm) { LOG_ERROR("Target type '%s' does not support %s", target_type_name(target), __func__); goto done;