Commit afda8bb5 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville

wil6210: checkpatch warnings

Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7743882d
...@@ -204,7 +204,6 @@ static int wil_cfg80211_scan(struct wiphy *wiphy, ...@@ -204,7 +204,6 @@ static int wil_cfg80211_scan(struct wiphy *wiphy,
break; break;
default: default:
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
/* FW don't support scan after connection attempt */ /* FW don't support scan after connection attempt */
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
static inline void wil_icr_clear(u32 x, void __iomem *addr) static inline void wil_icr_clear(u32 x, void __iomem *addr)
{ {
} }
#else /* defined(CONFIG_WIL6210_ISR_COR) */ #else /* defined(CONFIG_WIL6210_ISR_COR) */
/* configure to Write-1-to-Clear mode */ /* configure to Write-1-to-Clear mode */
......
...@@ -80,7 +80,7 @@ static void _wil6210_disconnect(struct wil6210_priv *wil, void *bssid) ...@@ -80,7 +80,7 @@ static void _wil6210_disconnect(struct wil6210_priv *wil, void *bssid)
GFP_KERNEL); GFP_KERNEL);
break; break;
default: default:
; break;
} }
for (i = 0; i < ARRAY_SIZE(wil->vring_tx); i++) for (i = 0; i < ARRAY_SIZE(wil->vring_tx); i++)
...@@ -357,7 +357,7 @@ static int __wil_up(struct wil6210_priv *wil) ...@@ -357,7 +357,7 @@ static int __wil_up(struct wil6210_priv *wil)
wmi_set_channel(wil, channel->hw_value); wmi_set_channel(wil, channel->hw_value);
break; break;
default: default:
; break;
} }
/* MAC address - pre-requisite for other commands */ /* MAC address - pre-requisite for other commands */
......
...@@ -39,8 +39,8 @@ static const struct net_device_ops wil_netdev_ops = { ...@@ -39,8 +39,8 @@ static const struct net_device_ops wil_netdev_ops = {
.ndo_open = wil_open, .ndo_open = wil_open,
.ndo_stop = wil_stop, .ndo_stop = wil_stop,
.ndo_start_xmit = wil_start_xmit, .ndo_start_xmit = wil_start_xmit,
.ndo_set_mac_address = eth_mac_addr, .ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr, .ndo_validate_addr = eth_validate_addr,
}; };
void *wil_if_alloc(struct device *dev, void __iomem *csr) void *wil_if_alloc(struct device *dev, void __iomem *csr)
......
...@@ -758,8 +758,7 @@ netdev_tx_t wil_start_xmit(struct sk_buff *skb, struct net_device *ndev) ...@@ -758,8 +758,7 @@ netdev_tx_t wil_start_xmit(struct sk_buff *skb, struct net_device *ndev)
case -ENOMEM: case -ENOMEM:
return NETDEV_TX_BUSY; return NETDEV_TX_BUSY;
default: default:
; /* goto drop; */ break; /* goto drop; */
break;
} }
drop: drop:
netif_tx_stop_all_queues(ndev); netif_tx_stop_all_queues(ndev);
......
...@@ -188,7 +188,6 @@ static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, void *buf, u16 len) ...@@ -188,7 +188,6 @@ static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, void *buf, u16 len)
wil_err(wil, "WMI size too large: %d bytes, max is %d\n", wil_err(wil, "WMI size too large: %d bytes, max is %d\n",
(int)(sizeof(cmd) + len), r->entry_size); (int)(sizeof(cmd) + len), r->entry_size);
return -ERANGE; return -ERANGE;
} }
might_sleep(); might_sleep();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment