diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-24 14:13:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-27 15:24:22 -0400 |
commit | 5696aea6f243e40013d2b00cd140fd006ec20b9c (patch) | |
tree | a40223f42ac20cb82492ae0844992434d27f5379 /drivers/net/wireless/iwlwifi/iwl-core.h | |
parent | c2acea8e9b86ba5a5469ff477445676a223af4e2 (diff) |
iwlwifi: remove command callback return value
No existing callbacks use anything other than the return
value 1, which means that the caller should free the
reply skb, so it seems safer in terms of not introducing
memory leaks to simply remove the return value and let
the caller always free the skb.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 4156debec39c..febcf76e1d41 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -446,9 +446,9 @@ int __must_check iwl_send_cmd_pdu(struct iwl_priv *priv, u8 id, | |||
446 | u16 len, const void *data); | 446 | u16 len, const void *data); |
447 | int iwl_send_cmd_pdu_async(struct iwl_priv *priv, u8 id, u16 len, | 447 | int iwl_send_cmd_pdu_async(struct iwl_priv *priv, u8 id, u16 len, |
448 | const void *data, | 448 | const void *data, |
449 | int (*callback)(struct iwl_priv *priv, | 449 | void (*callback)(struct iwl_priv *priv, |
450 | struct iwl_device_cmd *cmd, | 450 | struct iwl_device_cmd *cmd, |
451 | struct sk_buff *skb)); | 451 | struct sk_buff *skb)); |
452 | 452 | ||
453 | int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd); | 453 | int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd); |
454 | 454 | ||