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

Commit 2eb51f22 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3-msm: Fix dwc3_drd_state_string for undefined state"

parents e7564eab ba8eb111
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ enum dwc3_drd_state {
};

static const char *const state_names[] = {
	[DRD_STATE_UNDEFINED] = "undefined",
	[DRD_STATE_IDLE] = "idle",
	[DRD_STATE_PERIPHERAL] = "peripheral",
	[DRD_STATE_PERIPHERAL_SUSPEND] = "peripheral_suspend",
@@ -152,7 +153,7 @@ static const char *const state_names[] = {
const char *dwc3_drd_state_string(enum dwc3_drd_state state)
{
	if (state < 0 || state >= ARRAY_SIZE(state_names))
		return "UNDEFINED";
		return "UNKNOWN";

	return state_names[state];
}