orinoco: address leading and trailing whitespace
Remove the following checkpatch errors from orinoco.c ERROR: trailing whitespace ERROR: code indent should use tabs where possible WARNING: suspect code indent for conditional statements Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
ce1a9ee33a
commit
6fe9deb174
1 changed files with 53 additions and 53 deletions
|
@ -929,8 +929,8 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||||
|
|
||||||
if (! netif_carrier_ok(dev) || (priv->iw_mode == IW_MODE_MONITOR)) {
|
if (! netif_carrier_ok(dev) || (priv->iw_mode == IW_MODE_MONITOR)) {
|
||||||
/* Oops, the firmware hasn't established a connection,
|
/* Oops, the firmware hasn't established a connection,
|
||||||
silently drop the packet (this seems to be the
|
silently drop the packet (this seems to be the
|
||||||
safest approach). */
|
safest approach). */
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1424,8 +1424,8 @@ static void __orinoco_ev_rx(struct net_device *dev, hermes_t *hw)
|
||||||
/* Sanity checks */
|
/* Sanity checks */
|
||||||
if (length < 3) { /* No for even an 802.2 LLC header */
|
if (length < 3) { /* No for even an 802.2 LLC header */
|
||||||
/* At least on Symbol firmware with PCF we get quite a
|
/* At least on Symbol firmware with PCF we get quite a
|
||||||
lot of these legitimately - Poll frames with no
|
lot of these legitimately - Poll frames with no
|
||||||
data. */
|
data. */
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (length > IEEE80211_MAX_DATA_LEN) {
|
if (length > IEEE80211_MAX_DATA_LEN) {
|
||||||
|
@ -2982,7 +2982,7 @@ static void orinoco_reset(struct work_struct *work)
|
||||||
|
|
||||||
orinoco_unlock(priv, &flags);
|
orinoco_unlock(priv, &flags);
|
||||||
|
|
||||||
/* Scanning support: Cleanup of driver struct */
|
/* Scanning support: Cleanup of driver struct */
|
||||||
orinoco_clear_scan_results(priv, 0);
|
orinoco_clear_scan_results(priv, 0);
|
||||||
priv->scan_inprogress = 0;
|
priv->scan_inprogress = 0;
|
||||||
|
|
||||||
|
@ -3335,8 +3335,8 @@ static int determine_firmware(struct net_device *dev)
|
||||||
*/
|
*/
|
||||||
priv->do_fw_download = (priv->stop_fw != NULL);
|
priv->do_fw_download = (priv->stop_fw != NULL);
|
||||||
|
|
||||||
priv->broken_disableport = (firmver == 0x25013) ||
|
priv->broken_disableport = (firmver == 0x25013) ||
|
||||||
(firmver >= 0x30000 && firmver <= 0x31000);
|
(firmver >= 0x30000 && firmver <= 0x31000);
|
||||||
priv->has_hostscan = (firmver >= 0x31001) ||
|
priv->has_hostscan = (firmver >= 0x31001) ||
|
||||||
(firmver >= 0x29057 && firmver < 0x30000);
|
(firmver >= 0x29057 && firmver < 0x30000);
|
||||||
/* Tested with Intel firmware : 0x20015 => Jean II */
|
/* Tested with Intel firmware : 0x20015 => Jean II */
|
||||||
|
@ -4814,7 +4814,7 @@ static int orinoco_ioctl_set_encodeext(struct net_device *dev,
|
||||||
idx = priv->tx_key;
|
idx = priv->tx_key;
|
||||||
|
|
||||||
if (encoding->flags & IW_ENCODE_DISABLED)
|
if (encoding->flags & IW_ENCODE_DISABLED)
|
||||||
alg = IW_ENCODE_ALG_NONE;
|
alg = IW_ENCODE_ALG_NONE;
|
||||||
|
|
||||||
if (priv->has_wpa && (alg != IW_ENCODE_ALG_TKIP)) {
|
if (priv->has_wpa && (alg != IW_ENCODE_ALG_TKIP)) {
|
||||||
/* Clear any TKIP TX key we had */
|
/* Clear any TKIP TX key we had */
|
||||||
|
|
Loading…
Add table
Reference in a new issue