Przeglądaj źródła

iwlwifi: transport config n_no_reclaim_cmds should be unsigned

The number of commands can never be negative, so it should
be using an unsigned type. This also shuts up an smatch
warning elsewhere in the code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Johannes Berg 11 lat temu
rodzic
commit
84cf0e6207
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/net/wireless/iwlwifi/iwl-trans.h

+ 1 - 1
drivers/net/wireless/iwlwifi/iwl-trans.h

@@ -344,7 +344,7 @@ struct iwl_trans_config {
 	u8 cmd_queue;
 	u8 cmd_fifo;
 	const u8 *no_reclaim_cmds;
-	int n_no_reclaim_cmds;
+	unsigned int n_no_reclaim_cmds;
 
 	bool rx_buf_size_8k;
 	bool bc_table_dword;