Restore deleted '!' character
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 4 Apr 2010 08:28:50 +0000 (01:28 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 4 Apr 2010 08:29:24 +0000 (01:29 -0700)
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 <dbrownell@users.sourceforge.net>
src/target/target.c

index 286933f45458e7e19a6fe842fa578641d729f72a..f3d63fccc3443d8e9795585be258e525a9a9cfc7 100644 (file)
@@ -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;