Commit f58983246dd6ffbb87f09558fe98258f28fdbe88

Philip Kelley 2013-03-12T15:31:14

Style: Reverse lhs and rhs of == comparisons

diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index a7734d3..c653ad5 100644
--- a/src/transports/smart_protocol.c
+++ b/src/transports/smart_protocol.c
@@ -624,7 +624,7 @@ static int add_push_report_sideband_pkt(git_push *push, git_pkt_data *data_pkt)
 
 		git_pkt_free(pkt);
 
-		if (error < 0 && GIT_ITEROVER != error)
+		if (error < 0 && error != GIT_ITEROVER)
 			return error;
 	}
 
@@ -682,7 +682,7 @@ static int parse_report(gitno_buffer *buf, git_push *push)
 		git_pkt_free(pkt);
 
 		/* add_push_report_pkt returns GIT_ITEROVER when it receives a flush */
-		if (GIT_ITEROVER == error)
+		if (error == GIT_ITEROVER)
 			return 0;
 
 		if (error < 0)