[v2,05/12] staging: r8188eu: replace switch with if
Commit Message
The switch statement in usb_write_port_complete has only one single case.
Replace it with an if statement.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/staging/r8188eu/os_dep/usb_ops_linux.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
@@ -41,13 +41,8 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)
struct adapter *padapter = pxmitbuf->padapter;
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
- switch (pxmitbuf->flags) {
- case HIGH_QUEUE_INX:
+ if (pxmitbuf->flags == HIGH_QUEUE_INX)
rtw_chk_hi_queue_cmd(padapter);
- break;
- default:
- break;
- }
if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||
padapter->bWritePortCancel)