mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-15 06:00:41 +00:00
iwlwifi: mvm: remove unnecessary label in iwl_mvm_handle_rx_statistics()
The "invalid" label was a bit ugly and unnecessary. Remove it. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
13a3a39052
commit
6a90f85a69
@ -660,8 +660,11 @@ void iwl_mvm_handle_rx_statistics(struct iwl_mvm *mvm,
|
|||||||
else
|
else
|
||||||
expected_size = sizeof(struct iwl_notif_statistics_v10);
|
expected_size = sizeof(struct iwl_notif_statistics_v10);
|
||||||
|
|
||||||
if (iwl_rx_packet_payload_len(pkt) != expected_size)
|
if (iwl_rx_packet_payload_len(pkt) != expected_size) {
|
||||||
goto invalid;
|
IWL_ERR(mvm, "received invalid statistics size (%d)!\n",
|
||||||
|
iwl_rx_packet_payload_len(pkt));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
data.mac_id = stats->rx.general.mac_id;
|
data.mac_id = stats->rx.general.mac_id;
|
||||||
data.beacon_filter_average_energy =
|
data.beacon_filter_average_energy =
|
||||||
@ -714,12 +717,6 @@ void iwl_mvm_handle_rx_statistics(struct iwl_mvm *mvm,
|
|||||||
sta->avg_energy = energy[i];
|
sta->avg_energy = energy[i];
|
||||||
}
|
}
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
invalid:
|
|
||||||
IWL_ERR(mvm, "received invalid statistics size (%d)!\n",
|
|
||||||
iwl_rx_packet_payload_len(pkt));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void iwl_mvm_rx_statistics(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
|
void iwl_mvm_rx_statistics(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user