drivers/usbmisc: remove redundant scope in switch/case
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
ab196aebe4
commit
61e996af33
@ -816,7 +816,6 @@ static void fusb302_worker(FAR void *arg)
|
||||
switch (priv->state)
|
||||
{
|
||||
case WAITING_FOR_DRP_TOGG_I:
|
||||
{
|
||||
if (interrupta & INTERRUPTA_M_TOGDONE)
|
||||
{
|
||||
/* What has connected? */
|
||||
@ -880,7 +879,6 @@ static void fusb302_worker(FAR void *arg)
|
||||
|
||||
set_int_mask(priv);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WAITING_FOR_VBUS:
|
||||
if (interrupt & INTERRUPT_VBUS_OK)
|
||||
@ -927,7 +925,6 @@ static void fusb302_worker(FAR void *arg)
|
||||
}
|
||||
break;
|
||||
case WAITING_FOR_SNK_TOGG_I:
|
||||
{
|
||||
if (interrupta & INTERRUPTA_M_TOGDONE)
|
||||
{
|
||||
/* Check what has connected? */
|
||||
@ -987,10 +984,8 @@ static void fusb302_worker(FAR void *arg)
|
||||
|
||||
set_int_mask(priv);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WAITING_FOR_SRC_TOGG_I:
|
||||
{
|
||||
if (interrupta & INTERRUPTA_M_TOGDONE)
|
||||
{
|
||||
/* Check what has connected? */
|
||||
@ -1041,10 +1036,8 @@ static void fusb302_worker(FAR void *arg)
|
||||
|
||||
set_int_mask(priv);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WAITING_FOR_SRC_DISCONNECT:
|
||||
{
|
||||
if ((priv->connect_status != SRC_DEVICE_CONNECTED) &&
|
||||
(priv->connect_status != AUDIO_ACCESSORY_CONNECTED))
|
||||
{
|
||||
@ -1060,10 +1053,8 @@ static void fusb302_worker(FAR void *arg)
|
||||
{
|
||||
priv->connect_status = BC_LEVEL_CHANGE_REQUSTED;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WAITING_FOR_SNK_DISCONNECT:
|
||||
{
|
||||
regval = fusb302_getreg(priv, FUSB302_STATUS0_REG);
|
||||
if (regval & STATUS0_VBUS_OK)
|
||||
/* A USB3 device can cause a spurious VBUS OK here.
|
||||
@ -1085,7 +1076,6 @@ static void fusb302_worker(FAR void *arg)
|
||||
{
|
||||
priv->connect_status = BC_LEVEL_CHANGE_REQUSTED;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WAITING_FOR_HOST_INTERVENTION:
|
||||
/* the higher level software has not dealt with the previous
|
||||
|
Loading…
x
Reference in New Issue
Block a user