File tree 1 file changed +3
-12
lines changed 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -745,8 +745,6 @@ static int read_object_process(const struct object_id *oid)
745
745
746
746
start = getnanotime ();
747
747
748
- trace2_region_enter ("subprocess" , "read_object" , the_repository );
749
-
750
748
if (!subprocess_map_initialized ) {
751
749
subprocess_map_initialized = 1 ;
752
750
hashmap_init (& subprocess_map , (hashmap_cmp_fn )cmd2process_cmp ,
@@ -763,16 +761,13 @@ static int read_object_process(const struct object_id *oid)
763
761
if (subprocess_start (& subprocess_map , & entry -> subprocess , cmd ,
764
762
start_read_object_fn )) {
765
763
free (entry );
766
- err = -1 ;
767
- goto leave_region ;
764
+ return -1 ;
768
765
}
769
766
}
770
767
process = & entry -> subprocess .process ;
771
768
772
- if (!(CAP_GET & entry -> supported_capabilities )) {
773
- err = -1 ;
774
- goto leave_region ;
775
- }
769
+ if (!(CAP_GET & entry -> supported_capabilities ))
770
+ return -1 ;
776
771
777
772
sigchain_push (SIGPIPE , SIG_IGN );
778
773
@@ -821,10 +816,6 @@ static int read_object_process(const struct object_id *oid)
821
816
822
817
trace_performance_since (start , "read_object_process" );
823
818
824
- leave_region :
825
- trace2_region_leave_printf ("subprocess" , "read_object" , the_repository ,
826
- "result %d" , err );
827
-
828
819
return err ;
829
820
}
830
821
You can’t perform that action at this time.
0 commit comments