mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
staging: rtl8192e: Remove dead code from _rtl92e_if_check_reset()
The return value of _rtl92e_tx_check_stuck() and _rtl92e_rx_check_stuck() can only be RESET_TYPE_SILENT or RESET_TYPE_NORESET. This functions are only used in _rtl92e_if_check_reset(). In _rtl92e_if_check_reset() the return values are checked for RESET_TYPE_NORMAL which cannot occur. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/5f29332205dd76896e981fa627925d62a6bf7f63.1696165351.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
04590c88e4
commit
c199cbac14
@@ -975,12 +975,7 @@ static enum reset_type _rtl92e_if_check_reset(struct net_device *dev)
|
||||
(priv->rtllib->link_state == MAC80211_LINKED))
|
||||
RxResetType = _rtl92e_rx_check_stuck(dev);
|
||||
|
||||
if (TxResetType == RESET_TYPE_NORMAL ||
|
||||
RxResetType == RESET_TYPE_NORMAL) {
|
||||
netdev_info(dev, "%s(): TxResetType is %d, RxResetType is %d\n",
|
||||
__func__, TxResetType, RxResetType);
|
||||
return RESET_TYPE_NORMAL;
|
||||
} else if (TxResetType == RESET_TYPE_SILENT ||
|
||||
if (TxResetType == RESET_TYPE_SILENT ||
|
||||
RxResetType == RESET_TYPE_SILENT) {
|
||||
netdev_info(dev, "%s(): TxResetType is %d, RxResetType is %d\n",
|
||||
__func__, TxResetType, RxResetType);
|
||||
|
||||
Reference in New Issue
Block a user