aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-07-27 16:05:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-07-27 15:11:38 -0400
commit8196112859a6742b9e25ca5fde972a7f41f06cc3 (patch)
tree6a08dd47dab82b50498c8a3b5eeed28285d94736 /drivers
parenta6bb1bcebced1eeed6a96f37cda7cbb7cbd6dae6 (diff)
libertas: remove unused indirect command response handler
Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index 26a30db77d37..a4e147a11d0c 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -54,28 +54,6 @@ void lbs_mac_event_disconnected(struct lbs_private *priv)
54 lbs_deb_leave(LBS_DEB_ASSOC); 54 lbs_deb_leave(LBS_DEB_ASSOC);
55} 55}
56 56
57static inline int handle_cmd_response(struct lbs_private *priv,
58 struct cmd_header *cmd_response)
59{
60 struct cmd_ds_command *resp = (struct cmd_ds_command *) cmd_response;
61 int ret = 0;
62 uint16_t respcmd = le16_to_cpu(resp->command);
63
64 lbs_deb_enter(LBS_DEB_HOST);
65
66 switch (respcmd) {
67 case CMD_RET(CMD_802_11_BEACON_STOP):
68 break;
69
70 default:
71 lbs_pr_err("CMD_RESP: unknown cmd response 0x%04x\n",
72 le16_to_cpu(resp->command));
73 break;
74 }
75 lbs_deb_leave(LBS_DEB_HOST);
76 return ret;
77}
78
79int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len) 57int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len)
80{ 58{
81 uint16_t respcmd, curcmd; 59 uint16_t respcmd, curcmd;
@@ -216,8 +194,7 @@ int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len)
216 if (priv->cur_cmd && priv->cur_cmd->callback) { 194 if (priv->cur_cmd && priv->cur_cmd->callback) {
217 ret = priv->cur_cmd->callback(priv, priv->cur_cmd->callback_arg, 195 ret = priv->cur_cmd->callback(priv, priv->cur_cmd->callback_arg,
218 resp); 196 resp);
219 } else 197 }
220 ret = handle_cmd_response(priv, resp);
221 198
222 spin_lock_irqsave(&priv->driver_lock, flags); 199 spin_lock_irqsave(&priv->driver_lock, flags);
223 200