mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
wifi: iwlwifi: pcie: remove constant wdg_timeout
This value is only ever initialized and read, so just replace the usage with the constant and remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250503224232.48333e80a74d.I6c1aaa23fac5ff7400aa59a3093b53774261cb0e@changeid
This commit is contained in:
parent
0b205d0f0f
commit
995727b113
|
|
@ -304,7 +304,6 @@ enum iwl_pcie_imr_status {
|
|||
* @cmd: command queue data
|
||||
* @cmd.fifo: FIFO number
|
||||
* @cmd.q_id: queue ID
|
||||
* @cmd.wdg_timeout: watchdog timeout
|
||||
* @tfd: TFD data
|
||||
* @tfd.max_tbs: max number of buffers per TFD
|
||||
* @tfd.size: TFD size
|
||||
|
|
@ -324,7 +323,6 @@ struct iwl_pcie_txqs {
|
|||
struct {
|
||||
u8 fifo;
|
||||
u8 q_id;
|
||||
unsigned int wdg_timeout;
|
||||
} cmd;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
|
|
@ -3844,9 +3844,6 @@ iwl_trans_pcie_alloc(struct pci_dev *pdev,
|
|||
}
|
||||
trans->max_skb_frags = IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie);
|
||||
|
||||
/* Set a short watchdog for the command queue */
|
||||
trans_pcie->txqs.cmd.wdg_timeout = IWL_DEF_WD_TIMEOUT;
|
||||
|
||||
trans_pcie->txqs.tso_hdr_page = alloc_percpu(struct iwl_tso_hdr_page);
|
||||
if (!trans_pcie->txqs.tso_hdr_page) {
|
||||
ret = -ENOMEM;
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ void iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr)
|
|||
|
||||
iwl_trans_ac_txq_enable(trans, trans_pcie->txqs.cmd.q_id,
|
||||
trans_pcie->txqs.cmd.fifo,
|
||||
trans_pcie->txqs.cmd.wdg_timeout);
|
||||
IWL_DEF_WD_TIMEOUT);
|
||||
|
||||
/* Activate all Tx DMA/FIFO channels */
|
||||
iwl_scd_activate_fifos(trans);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user