Skip to content

Commit

Permalink
always return success on disable
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeYingyan committed Jan 24, 2022
1 parent 841b74b commit fd80448
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gc_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,7 @@ int gc_disable_gadget(gc_generic_info info)
return GC_FAILED;
usbg_gadget *g;
g = usbg_get_first_gadget(state);
if(usbg_disable_gadget(g) != USBG_SUCCESS){
fprintf(stderr,"failed to disable gadget! \n");
gc_clean();
return GC_FAILED;
}
usbg_disable_gadget(g);

return GC_SUCCESS;
}
Expand Down

0 comments on commit fd80448

Please sign in to comment.