diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index 6330bdd83f743c253d7f9845614d3de4720799fd..1a606a41893573264ad912a826ad96f47f5249c9 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -565,8 +565,7 @@ static int end_syscall(struct state *state, struct syscall_spec *syscall, "with errno %d (%s)", actual, actual_errno, strerror(actual_errno)); return STATUS_ERR; - } - else if ((expected < 0) && (actual != expected)) { + } else if ((expected < 0) && (actual != expected)) { asprintf(error, "Expected result %d but got %d", expected, actual);