|
@@ -414,7 +414,6 @@ static int iwl_sens_auto_corr_ofdm(struct iwl_priv *priv,
|
|
|
/* Prepare a SENSITIVITY_CMD, send to uCode if values have changed */
|
|
|
static int iwl_sensitivity_write(struct iwl_priv *priv)
|
|
|
{
|
|
|
- int ret = 0;
|
|
|
struct iwl_sensitivity_cmd cmd ;
|
|
|
struct iwl_sensitivity_data *data = NULL;
|
|
|
struct iwl_host_cmd cmd_out = {
|
|
@@ -477,11 +476,7 @@ static int iwl_sensitivity_write(struct iwl_priv *priv)
|
|
|
memcpy(&(priv->sensitivity_tbl[0]), &(cmd.table[0]),
|
|
|
sizeof(u16)*HD_TABLE_SIZE);
|
|
|
|
|
|
- ret = iwl_send_cmd(priv, &cmd_out);
|
|
|
- if (ret)
|
|
|
- IWL_ERR(priv, "SENSITIVITY_CMD failed\n");
|
|
|
-
|
|
|
- return ret;
|
|
|
+ return iwl_send_cmd(priv, &cmd_out);
|
|
|
}
|
|
|
|
|
|
void iwl_init_sensitivity(struct iwl_priv *priv)
|