diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-07-20 19:40:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-04 15:09:11 -0400 |
commit | 3ac7f14694dd38273d9d96f1c873233d71190c15 (patch) | |
tree | 4ea3479c3bdba35bc49866356b44454910f9071e /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 25bc2deda9e8a430ed49f507a1120fb2c86abf33 (diff) |
iwlwifi: fix checkpatch.pl errors
This patch fixes errors reported by checkpatch in iwlwifi drivers
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index f71b3f3f81ba..4ff0636dbddc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2476,7 +2476,7 @@ static void iwl4965_post_associate(struct iwl_priv *priv) | |||
2476 | unsigned long flags; | 2476 | unsigned long flags; |
2477 | 2477 | ||
2478 | if (priv->iw_mode == IEEE80211_IF_TYPE_AP) { | 2478 | if (priv->iw_mode == IEEE80211_IF_TYPE_AP) { |
2479 | IWL_ERROR("%s Should not be called in AP mode\n", __FUNCTION__); | 2479 | IWL_ERROR("%s Should not be called in AP mode\n", __func__); |
2480 | return; | 2480 | return; |
2481 | } | 2481 | } |
2482 | 2482 | ||
@@ -2552,7 +2552,7 @@ static void iwl4965_post_associate(struct iwl_priv *priv) | |||
2552 | 2552 | ||
2553 | default: | 2553 | default: |
2554 | IWL_ERROR("%s Should not be called in %d mode\n", | 2554 | IWL_ERROR("%s Should not be called in %d mode\n", |
2555 | __FUNCTION__, priv->iw_mode); | 2555 | __func__, priv->iw_mode); |
2556 | break; | 2556 | break; |
2557 | } | 2557 | } |
2558 | 2558 | ||
@@ -3794,7 +3794,7 @@ static ssize_t show_measurement(struct device *d, | |||
3794 | struct iwl_priv *priv = dev_get_drvdata(d); | 3794 | struct iwl_priv *priv = dev_get_drvdata(d); |
3795 | struct iwl4965_spectrum_notification measure_report; | 3795 | struct iwl4965_spectrum_notification measure_report; |
3796 | u32 size = sizeof(measure_report), len = 0, ofs = 0; | 3796 | u32 size = sizeof(measure_report), len = 0, ofs = 0; |
3797 | u8 *data = (u8 *) & measure_report; | 3797 | u8 *data = (u8 *)&measure_report; |
3798 | unsigned long flags; | 3798 | unsigned long flags; |
3799 | 3799 | ||
3800 | spin_lock_irqsave(&priv->lock, flags); | 3800 | spin_lock_irqsave(&priv->lock, flags); |
@@ -3934,7 +3934,7 @@ static ssize_t show_power_level(struct device *d, | |||
3934 | p += sprintf(p, "\tMODE:%s", (mode < IWL_POWER_AUTO)?"fixed":"auto"); | 3934 | p += sprintf(p, "\tMODE:%s", (mode < IWL_POWER_AUTO)?"fixed":"auto"); |
3935 | p += sprintf(p, "\tINDEX:%d", level); | 3935 | p += sprintf(p, "\tINDEX:%d", level); |
3936 | p += sprintf(p, "\n"); | 3936 | p += sprintf(p, "\n"); |
3937 | return (p - buf + 1); | 3937 | return p - buf + 1; |
3938 | } | 3938 | } |
3939 | 3939 | ||
3940 | static DEVICE_ATTR(power_level, S_IWUSR | S_IRUSR, show_power_level, | 3940 | static DEVICE_ATTR(power_level, S_IWUSR | S_IRUSR, show_power_level, |
@@ -4009,7 +4009,7 @@ static ssize_t show_statistics(struct device *d, | |||
4009 | struct iwl_priv *priv = dev_get_drvdata(d); | 4009 | struct iwl_priv *priv = dev_get_drvdata(d); |
4010 | u32 size = sizeof(struct iwl_notif_statistics); | 4010 | u32 size = sizeof(struct iwl_notif_statistics); |
4011 | u32 len = 0, ofs = 0; | 4011 | u32 len = 0, ofs = 0; |
4012 | u8 *data = (u8 *) & priv->statistics; | 4012 | u8 *data = (u8 *)&priv->statistics; |
4013 | int rc = 0; | 4013 | int rc = 0; |
4014 | 4014 | ||
4015 | if (!iwl_is_alive(priv)) | 4015 | if (!iwl_is_alive(priv)) |