mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-21 20:13:39 +00:00
rtl8188eu: Fix fallthrough statements
In kernel 5.4.0-rc3, the kernel includes define a "fallthrough" macro, which breaks a couple of the statements in the driver. Use __fallthrough__ instead. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
49b933a1b2
commit
126d786bd4
2 changed files with 2 additions and 2 deletions
|
@ -1923,7 +1923,7 @@ static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
||||||
switch (variable) {
|
switch (variable) {
|
||||||
case HW_VAR_BASIC_RATE:
|
case HW_VAR_BASIC_RATE:
|
||||||
*((u16 *)(val)) = haldata->BasicRateSet;
|
*((u16 *)(val)) = haldata->BasicRateSet;
|
||||||
__attribute__((fallthrough));
|
__attribute__((__fallthrough__));
|
||||||
case HW_VAR_TXPAUSE:
|
case HW_VAR_TXPAUSE:
|
||||||
val[0] = rtw_read8(Adapter, REG_TXPAUSE);
|
val[0] = rtw_read8(Adapter, REG_TXPAUSE);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -553,7 +553,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
||||||
case -ENODEV:
|
case -ENODEV:
|
||||||
case -ESHUTDOWN:
|
case -ESHUTDOWN:
|
||||||
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bSurpriseRemoved=true\n"));
|
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bSurpriseRemoved=true\n"));
|
||||||
__attribute__((fallthrough));
|
__attribute__((__fallthrough__));
|
||||||
case -ENOENT:
|
case -ENOENT:
|
||||||
adapt->bDriverStopped = true;
|
adapt->bDriverStopped = true;
|
||||||
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bDriverStopped=true\n"));
|
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bDriverStopped=true\n"));
|
||||||
|
|
Loading…
Reference in a new issue