Skip to content

Commit

Permalink
iwmc3200wifi: fix misuse of le16_to_cpu
Browse files Browse the repository at this point in the history
Also mark some functions static.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Sep 1, 2009
1 parent c743627 commit 3145242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions drivers/net/wireless/iwmc3200wifi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ static void iwm_disconnect_work(struct work_struct *work)
cfg80211_disconnected(iwm_to_ndev(iwm), 0, NULL, 0, GFP_KERNEL);
}

int __iwm_up(struct iwm_priv *iwm);
int __iwm_down(struct iwm_priv *iwm);
static int __iwm_up(struct iwm_priv *iwm);
static int __iwm_down(struct iwm_priv *iwm);

static void iwm_reset_worker(struct work_struct *work)
{
Expand Down Expand Up @@ -559,7 +559,7 @@ static int iwm_channels_init(struct iwm_priv *iwm)
return 0;
}

int __iwm_up(struct iwm_priv *iwm)
static int __iwm_up(struct iwm_priv *iwm)
{
int ret;
struct iwm_notif *notif_reboot, *notif_ack = NULL;
Expand Down Expand Up @@ -693,7 +693,7 @@ int iwm_up(struct iwm_priv *iwm)
return ret;
}

int __iwm_down(struct iwm_priv *iwm)
static int __iwm_down(struct iwm_priv *iwm)
{
int ret;

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwmc3200wifi/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ static int iwm_mlme_mgt_frame(struct iwm_priv *iwm, u8 *buf,
iwm->resp_ie_len, GFP_KERNEL);
} else {
IWM_ERR(iwm, "Unsupported management frame: 0x%x",
cpu_to_le16(mgt->frame_control));
le16_to_cpu(mgt->frame_control));
return 0;
}

Expand Down

0 comments on commit 3145242

Please sign in to comment.