I would clean and lube the brake.
I would also turn the barrel adjuster all the way in for the brake so it's tight.
After that I would loosen the cable from the pinch bolt and pulling the cable tight with hands before clamping it back to the brake.
See If that solves the problem.