diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-04-21 18:41:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:16 -0400 |
commit | 9e5b806ce3f3943964d3f95415a21223c1983933 (patch) | |
tree | 7108565d3dde278df822eaca7e8adfd371a24b96 | |
parent | 82c78925eef1edc7bf96816074eae1ee59047d9a (diff) |
iwlwifi: remove uneeded callback
This patch removes callbacks that can be replaced by the generic one.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index b223087b0876..11339efa273b 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -941,13 +941,6 @@ static int iwl4965_send_scan_abort(struct iwl_priv *priv) | |||
941 | return rc; | 941 | return rc; |
942 | } | 942 | } |
943 | 943 | ||
944 | static int iwl4965_card_state_sync_callback(struct iwl_priv *priv, | ||
945 | struct iwl_cmd *cmd, | ||
946 | struct sk_buff *skb) | ||
947 | { | ||
948 | return 1; | ||
949 | } | ||
950 | |||
951 | /* | 944 | /* |
952 | * CARD_STATE_CMD | 945 | * CARD_STATE_CMD |
953 | * | 946 | * |
@@ -967,40 +960,9 @@ static int iwl4965_send_card_state(struct iwl_priv *priv, u32 flags, u8 meta_fla | |||
967 | .meta.flags = meta_flag, | 960 | .meta.flags = meta_flag, |
968 | }; | 961 | }; |
969 | 962 | ||
970 | if (meta_flag & CMD_ASYNC) | ||
971 | cmd.meta.u.callback = iwl4965_card_state_sync_callback; | ||
972 | |||
973 | return iwl_send_cmd(priv, &cmd); | 963 | return iwl_send_cmd(priv, &cmd); |
974 | } | 964 | } |
975 | 965 | ||
976 | static int iwl4965_add_sta_sync_callback(struct iwl_priv *priv, | ||
977 | struct iwl_cmd *cmd, struct sk_buff *skb) | ||
978 | { | ||
979 | struct iwl4965_rx_packet *res = NULL; | ||
980 | |||
981 | if (!skb) { | ||
982 | IWL_ERROR("Error: Response NULL in REPLY_ADD_STA.\n"); | ||
983 | return 1; | ||
984 | } | ||
985 | |||
986 | res = (struct iwl4965_rx_packet *)skb->data; | ||
987 | if (res->hdr.flags & IWL_CMD_FAILED_MSK) { | ||
988 | IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n", | ||
989 | res->hdr.flags); | ||
990 | return 1; | ||
991 | } | ||
992 | |||
993 | switch (res->u.add_sta.status) { | ||
994 | case ADD_STA_SUCCESS_MSK: | ||
995 | break; | ||
996 | default: | ||
997 | break; | ||
998 | } | ||
999 | |||
1000 | /* We didn't cache the SKB; let the caller free it */ | ||
1001 | return 1; | ||
1002 | } | ||
1003 | |||
1004 | int iwl4965_send_add_station(struct iwl_priv *priv, | 966 | int iwl4965_send_add_station(struct iwl_priv *priv, |
1005 | struct iwl4965_addsta_cmd *sta, u8 flags) | 967 | struct iwl4965_addsta_cmd *sta, u8 flags) |
1006 | { | 968 | { |
@@ -1013,9 +975,7 @@ int iwl4965_send_add_station(struct iwl_priv *priv, | |||
1013 | .data = sta, | 975 | .data = sta, |
1014 | }; | 976 | }; |
1015 | 977 | ||
1016 | if (flags & CMD_ASYNC) | 978 | if (!(flags & CMD_ASYNC)) |
1017 | cmd.meta.u.callback = iwl4965_add_sta_sync_callback; | ||
1018 | else | ||
1019 | cmd.meta.flags |= CMD_WANT_SKB; | 979 | cmd.meta.flags |= CMD_WANT_SKB; |
1020 | 980 | ||
1021 | rc = iwl_send_cmd(priv, &cmd); | 981 | rc = iwl_send_cmd(priv, &cmd); |