mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
staging: rtl8723bs: remove unnecessary else after break
This patch fixes the checkpatch.pl warning: "WARNING: else is not generally useful after a break or return" In sdio_ops_linux.c, the else blocks after break statements are redundant. Removing them reduces indentation level and improves code readability. Signed-off-by: Vo Thanh Cong <thanhcongvo079@gmail.com> Link: https://patch.msgid.link/20260113103738.207570-1-thanhcongvo079@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
efcffd9a6a
commit
45432aa97a
|
|
@ -219,14 +219,14 @@ u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err)
|
|||
if (*err == 0) {
|
||||
rtw_reset_continual_io_error(psdiodev);
|
||||
break;
|
||||
} else {
|
||||
if ((-ESHUTDOWN == *err) || (-ENODEV == *err))
|
||||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
|
||||
if (rtw_inc_and_chk_continual_io_error(psdiodev) == true) {
|
||||
padapter->bSurpriseRemoved = true;
|
||||
break;
|
||||
}
|
||||
if ((-ESHUTDOWN == *err) || (-ENODEV == *err))
|
||||
padapter->bSurpriseRemoved = true;
|
||||
|
||||
if (rtw_inc_and_chk_continual_io_error(psdiodev) == true) {
|
||||
padapter->bSurpriseRemoved = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -295,14 +295,14 @@ void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err)
|
|||
if (*err == 0) {
|
||||
rtw_reset_continual_io_error(psdiodev);
|
||||
break;
|
||||
} else {
|
||||
if ((-ESHUTDOWN == *err) || (-ENODEV == *err))
|
||||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
|
||||
if (rtw_inc_and_chk_continual_io_error(psdiodev) == true) {
|
||||
padapter->bSurpriseRemoved = true;
|
||||
break;
|
||||
}
|
||||
if ((-ESHUTDOWN == *err) || (-ENODEV == *err))
|
||||
padapter->bSurpriseRemoved = true;
|
||||
|
||||
if (rtw_inc_and_chk_continual_io_error(psdiodev) == true) {
|
||||
padapter->bSurpriseRemoved = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user