A state appeals court overturned the felony conviction of a San Francisco sheriff’s deputy for assaulting a homeless and disabled man at San Francisco General Hospital, saying Tuesday the trial judge failed to let the jury decide whether the officer’s use of force was necessary.