mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
staging: rtl8188eu: replace switch-case with if
This switch has only one case. Replace it with an if statement. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20210408195601.4762-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
062f6d1452
commit
f40e1901be
|
|
@ -675,13 +675,9 @@ u32 usb_write_port(struct adapter *padapter, u32 addr, u32 cnt, struct xmit_buf
|
|||
("%s(): usb_submit_urb, status =%x\n",
|
||||
__func__, status));
|
||||
|
||||
switch (status) {
|
||||
case -ENODEV:
|
||||
if (status == -ENODEV)
|
||||
padapter->bDriverStopped = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user