Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ae0bb3f authored by Luca Coelho's avatar Luca Coelho
Browse files

iwlwifi: remove unnecessary code in iwl_trans_alloc_tx_cmd



When we removed dev_cmd_headroom, the check for dev_cmd_ptr == NULL
became unnecessary, since we just return dev_cmd_ptr anyway.  Cleanup
the function to avoid useless code.

Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent b7e94bab
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -908,13 +908,7 @@ iwl_trans_dump_data(struct iwl_trans *trans,
static inline struct iwl_device_cmd *
iwl_trans_alloc_tx_cmd(struct iwl_trans *trans)
{
	struct iwl_device_cmd *dev_cmd_ptr =
		kmem_cache_alloc(trans->dev_cmd_pool, GFP_ATOMIC);

	if (unlikely(dev_cmd_ptr == NULL))
		return NULL;

	return dev_cmd_ptr;
	return kmem_cache_alloc(trans->dev_cmd_pool, GFP_ATOMIC);
}

int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);