Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3aadff47 authored by Rohith Kollalsi's avatar Rohith Kollalsi
Browse files

usb: pd: Use break instead of return after soft reset is done



After soft reset is done from PE_SRC_SEND_CAPABILITIES use
break to exit from the switch case instead of returning from
the function.

Change-Id: I36e3f34cf90b6620dd6ac8b9c9a503cf336e47c5
Signed-off-by: default avatarRohith Kollalsi <rkollals@codeaurora.org>
parent be1961a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2691,7 +2691,7 @@ static void usbpd_sm(struct work_struct *w)
		if (ret) {
			if (pd->pd_connected) {
				usbpd_set_state(pd, PE_SEND_SOFT_RESET);
				return;
				break;
			}
			pd->caps_count++;
			if (pd->caps_count >= PD_CAPS_COUNT) {