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>
This commit is contained in:

committed by
John W. Linville

parent
c2acea8e9b
commit
5696aea6f2
@@ -1144,8 +1144,8 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
|
||||
if (meta->flags & CMD_WANT_SKB) {
|
||||
meta->source->reply_skb = rxb->skb;
|
||||
rxb->skb = NULL;
|
||||
} else if (meta->callback && !meta->callback(priv, cmd, rxb->skb))
|
||||
rxb->skb = NULL;
|
||||
} else if (meta->callback)
|
||||
meta->callback(priv, cmd, rxb->skb);
|
||||
|
||||
iwl_hcmd_queue_reclaim(priv, txq_id, index, cmd_index);
|
||||
|
||||
|
Reference in New Issue
Block a user